Skip to content

Commit 744d7b8

Browse files
committed
Fix memory leak in wxBitmap with GTK3
Introduced in f724708 (Fix storing wxBitmap data in GdkPixbuf, 2019-09-18) (cherry picked from commit 7fbe369)
1 parent cc7fefd commit 744d7b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gtk/bitmap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,13 @@ wxBitmapRefData::~wxBitmapRefData()
390390
if (m_surface)
391391
cairo_surface_destroy(m_surface);
392392
#else
393-
if (m_pixbufMask)
394-
g_object_unref(m_pixbufMask);
395393
if (m_pixmap)
396394
g_object_unref (m_pixmap);
397395
if (m_pixbuf)
398396
g_object_unref (m_pixbuf);
399397
#endif
398+
if (m_pixbufMask)
399+
g_object_unref(m_pixbufMask);
400400
delete m_mask;
401401
}
402402

0 commit comments

Comments
 (0)