mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fixed memory leak in Comic
This commit is contained in:
parent
3125190184
commit
1dd4b341cc
@ -29,7 +29,7 @@ Comic::Comic(const QString & pathFile, int atPage )
|
||||
//-----------------------------------------------------------------------------
|
||||
Comic::~Comic()
|
||||
{
|
||||
|
||||
delete bm;
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
void Comic::setup()
|
||||
@ -196,7 +196,11 @@ FileComic::FileComic(const QString & path, int atPage )
|
||||
|
||||
FileComic::~FileComic()
|
||||
{
|
||||
|
||||
_pages.clear();
|
||||
_loadedPages.clear();
|
||||
_fileNames.clear();
|
||||
_newOrder.clear();
|
||||
_order.clear();
|
||||
}
|
||||
|
||||
bool FileComic::load(const QString & path, int atPage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user