]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/animate.cpp
make the length of string proportional to the parameter to study test time dependency...
[wxWidgets.git] / src / gtk / animate.cpp
index 206b36180e8722212c535f81c2730e3a704885df..67dd5aac993de435dcdaba63c891cbca5eae6fd1 100644 (file)
@@ -23,6 +23,7 @@
 #endif
 
 #include "wx/wfstream.h"
+
 #include <gtk/gtk.h>
 
 
@@ -210,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 );