# HG changeset patch # User Chris Cannam # Date 1484302924 0 # Node ID c603aba6170202ae759e99c09390eb4b640f8003 # Parent be42a33a3db6c11559166b65c30bcd7248a46c9f Fix memory leak of cache pixmaps in View diff -r be42a33a3db6 -r c603aba61702 view/View.cpp --- a/view/View.cpp Thu Jan 05 14:30:49 2017 +0000 +++ b/view/View.cpp Fri Jan 13 10:22:04 2017 +0000 @@ -80,6 +80,8 @@ m_deleting = true; delete m_propertyContainer; + delete m_cache; + delete m_buffer; } PropertyContainer::PropertyList diff -r be42a33a3db6 -r c603aba61702 view/View.h --- a/view/View.h Thu Jan 05 14:30:49 2017 +0000 +++ b/view/View.h Fri Jan 13 10:22:04 2017 +0000 @@ -490,8 +490,8 @@ bool m_lightBackground; bool m_showProgress; - QPixmap *m_cache; - QPixmap *m_buffer; + QPixmap *m_cache; // I own this + QPixmap *m_buffer; // I own this sv_frame_t m_cacheCentreFrame; int m_cacheZoomLevel; bool m_selectionCached;