Commit 7cd7d93c authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

SANKORE-436 fix memory leak with switch page

parent 26e1f11a
...@@ -161,6 +161,7 @@ void UBDocumentNavigator::updateSpecificThumbnail(int iPage) ...@@ -161,6 +161,7 @@ void UBDocumentNavigator::updateSpecificThumbnail(int iPage)
mScene->removeItem(pItem); mScene->removeItem(pItem);
mScene->addItem(pixmapItem); mScene->addItem(pixmapItem);
mThumbnails.replace(iPage, pixmapItem); mThumbnails.replace(iPage, pixmapItem);
delete pItem;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment