Fixed memory leak in Comic

This commit is contained in:
Luis Ángel San Martín 2013-08-28 17:58:47 +02:00
parent 3125190184
commit 1dd4b341cc

View File

@ -29,7 +29,7 @@ Comic::Comic(const QString & pathFile, int atPage )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
Comic::~Comic() Comic::~Comic()
{ {
delete bm;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void Comic::setup() void Comic::setup()
@ -196,7 +196,11 @@ FileComic::FileComic(const QString & path, int atPage )
FileComic::~FileComic() FileComic::~FileComic()
{ {
_pages.clear();
_loadedPages.clear();
_fileNames.clear();
_newOrder.clear();
_order.clear();
} }
bool FileComic::load(const QString & path, int atPage) bool FileComic::load(const QString & path, int atPage)