]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbmp.cpp
clang fix, fixes #12332
[wxWidgets.git] / src / gtk / statbmp.cpp
index aeb95223ec0407ac674d4d0a271a9b85dd27a83d..a7e372c93d22d4268560c52ca7030f95b7a970b9 100644 (file)
@@ -20,8 +20,6 @@
 // wxStaticBitmap
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap,wxControl)
-
 wxStaticBitmap::wxStaticBitmap(void)
 {
 }
@@ -47,6 +45,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);