X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a4a02acd1b6f3925c719ed25cfc7c7500ff2f61..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/gtk/bmpbuttn.cpp?ds=inline diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 916cbf0f16..7920f09130 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/bmpbuttn.cpp @@ -137,6 +137,7 @@ bool wxBitmapButton::Create( wxWindow *parent, m_bmpNormal = bitmap; m_widget = gtk_button_new(); + g_object_ref(m_widget); if (style & wxNO_BORDER) gtk_button_set_relief( GTK_BUTTON(m_widget), GTK_RELIEF_NONE );