X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b0ccb8a603b4f97740acc65d9429bb58f7ba1bd..33ccf3d1ecb0c52bf4a1323587af92d67a672eb7:/src/gtk/calctrl.cpp diff --git a/src/gtk/calctrl.cpp b/src/gtk/calctrl.cpp index 313a3e3dc6..2da9293d0b 100644 --- a/src/gtk/calctrl.cpp +++ b/src/gtk/calctrl.cpp @@ -88,6 +88,7 @@ bool wxGtkCalendarCtrl::Create(wxWindow *parent, } m_widget = gtk_calendar_new(); + g_object_ref(m_widget); SetDate(date.IsValid() ? date : wxDateTime::Today()); if (style & wxCAL_NO_MONTH_CHANGE)