X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/908eeca88dee75d5ac3ba10d539fb7e0f5387d2c..ccd5d46c7b69632eaa231e8fc7801dd5af2faaa8:/src/gtk/slider.cpp diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index f14ae6394a..b2a24b3640 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -307,6 +307,7 @@ bool wxSlider::Create(wxWindow *parent, m_widget = gtk_vscale_new( (GtkAdjustment *) NULL ); else m_widget = gtk_hscale_new( (GtkAdjustment *) NULL ); + g_object_ref(m_widget); gtk_scale_set_draw_value(GTK_SCALE (m_widget), (style & wxSL_LABELS) != 0); // Keep full precision in position value