From: John Darrington Date: Sat, 14 Apr 2012 11:15:14 +0000 (+0200) Subject: PsppireDictView: Call gtk_widget_destroy instead of g_object_unref X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bcc86b42d184d76ce0573bbd85ae8c7217cca4d;p=pspp PsppireDictView: Call gtk_widget_destroy instead of g_object_unref GtkMenu is a toplevel window. Therefore, gtk_widget_destroy is appropriate. --- diff --git a/src/ui/gui/psppire-dictview.c b/src/ui/gui/psppire-dictview.c index 9469fa59f8..0e465a3a76 100644 --- a/src/ui/gui/psppire-dictview.c +++ b/src/ui/gui/psppire-dictview.c @@ -68,7 +68,7 @@ psppire_dict_view_finalize (GObject *object) { PsppireDictView *dict_view = PSPPIRE_DICT_VIEW (object); - g_object_unref (dict_view->menu); + gtk_widget_destroy (dict_view->menu); } /* Properties */