X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a4a02acd1b6f3925c719ed25cfc7c7500ff2f61..19c7ac3d3bf1ac2113505a805a79c40ce3db1f5b:/src/gtk/statbmp.cpp diff --git a/src/gtk/statbmp.cpp b/src/gtk/statbmp.cpp index aeb95223ec..b12acdde77 100644 --- a/src/gtk/statbmp.cpp +++ b/src/gtk/statbmp.cpp @@ -47,6 +47,7 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi m_bitmap = bitmap; m_widget = gtk_image_new(); + g_object_ref(m_widget); if (bitmap.Ok()) SetBitmap(bitmap);