Fix memory leak in wxBitmap with GTK3
Introduced in f7247086c2
(Fix storing wxBitmap data in GdkPixbuf, 2019-09-18)
(cherry picked from commit 7fbe3698c5e3eb89693e8a4e9f54e7f89d69ec87)
This commit is contained in:
parent
cc7fefd9f1
commit
744d7b8c09
@ -390,13 +390,13 @@ wxBitmapRefData::~wxBitmapRefData()
|
||||
if (m_surface)
|
||||
cairo_surface_destroy(m_surface);
|
||||
#else
|
||||
if (m_pixbufMask)
|
||||
g_object_unref(m_pixbufMask);
|
||||
if (m_pixmap)
|
||||
g_object_unref (m_pixmap);
|
||||
if (m_pixbuf)
|
||||
g_object_unref (m_pixbuf);
|
||||
#endif
|
||||
if (m_pixbufMask)
|
||||
g_object_unref(m_pixbufMask);
|
||||
delete m_mask;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user