X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6753003f1851b52c7778e2a12a747d6265f47d9..33ccf3d1ecb0c52bf4a1323587af92d67a672eb7:/src/gtk/animate.cpp diff --git a/src/gtk/animate.cpp b/src/gtk/animate.cpp index 22cd588406..67dd5aac99 100644 --- a/src/gtk/animate.cpp +++ b/src/gtk/animate.cpp @@ -211,6 +211,7 @@ bool wxAnimationCtrl::Create( wxWindow *parent, wxWindowID id, SetWindowStyle(style); m_widget = gtk_image_new(); + g_object_ref(m_widget); gtk_widget_show(m_widget); m_parent->DoAddChild( this );