X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b0ccb8a603b4f97740acc65d9429bb58f7ba1bd..8ba80c6f8325e61de2e3fc4bbd7cf3d750f432cd:/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)