Fix some memory leaks.
svn-id: r47284
This commit is contained in:
parent
62a87101d5
commit
af1ba42298
2 changed files with 12 additions and 3 deletions
|
@ -154,8 +154,11 @@ bool VirtualKeyboardParser::parserCallback_mode(ParserNode *node) {
|
|||
} else {
|
||||
// remove data relating to old resolution
|
||||
_mode->bitmapName.clear();
|
||||
delete _mode->image;
|
||||
_mode->image = 0;
|
||||
if (_mode->image) {
|
||||
_mode->image->free();
|
||||
delete _mode->image;
|
||||
_mode->image = 0;
|
||||
}
|
||||
_mode->imageMap.removeAllAreas();
|
||||
_mode->displayArea = Rect();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue