From: John Darrington Date: Sat, 28 Apr 2012 14:11:10 +0000 (+0200) Subject: Unref GtkBuilder objects when they are no longer required X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=90d86f274e3f497ae75739170f0e2e45ffcaa19c Unref GtkBuilder objects when they are no longer required --- diff --git a/src/ui/gui/psppire-dialog-action-descriptives.c b/src/ui/gui/psppire-dialog-action-descriptives.c index d1c7d21362..b83cea8067 100644 --- a/src/ui/gui/psppire-dialog-action-descriptives.c +++ b/src/ui/gui/psppire-dialog-action-descriptives.c @@ -227,6 +227,8 @@ psppire_dialog_action_descriptives_activate (GtkAction *a) psppire_dialog_action_set_refresh (pda, dialog_refresh); PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_descriptives_parent_class)->activate (pda); + + g_object_unref (xml); } static void diff --git a/src/ui/gui/psppire-dialog-action-examine.c b/src/ui/gui/psppire-dialog-action-examine.c index c5c8bd85dd..7698adfe6b 100644 --- a/src/ui/gui/psppire-dialog-action-examine.c +++ b/src/ui/gui/psppire-dialog-action-examine.c @@ -242,6 +242,8 @@ psppire_dialog_action_examine_activate (GtkAction *a) G_CALLBACK (run_opts_dialog), act); PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_examine_parent_class)->activate (pda); + + g_object_unref (xml); } static void diff --git a/src/ui/gui/psppire-dialog-action-means.c b/src/ui/gui/psppire-dialog-action-means.c index 8d378e221a..1ec9fccffb 100644 --- a/src/ui/gui/psppire-dialog-action-means.c +++ b/src/ui/gui/psppire-dialog-action-means.c @@ -120,6 +120,8 @@ psppire_dialog_action_means_activate (GtkAction *a) psppire_dialog_action_set_refresh (pda, dialog_refresh); PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_means_parent_class)->activate (pda); + + g_object_unref (xml); } static void diff --git a/src/ui/gui/psppire-dialog-action-reliability.c b/src/ui/gui/psppire-dialog-action-reliability.c index 465aea8de0..aca739cf36 100644 --- a/src/ui/gui/psppire-dialog-action-reliability.c +++ b/src/ui/gui/psppire-dialog-action-reliability.c @@ -159,6 +159,8 @@ psppire_dialog_action_reliability_activate (GtkAction *a) if (PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_reliability_parent_class)->activate) PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_reliability_parent_class)->activate (pda); + + g_object_unref (xml); } static void diff --git a/src/ui/gui/psppire-dialog-action-sort.c b/src/ui/gui/psppire-dialog-action-sort.c index 29c3c8063e..363ef08b03 100644 --- a/src/ui/gui/psppire-dialog-action-sort.c +++ b/src/ui/gui/psppire-dialog-action-sort.c @@ -109,6 +109,8 @@ psppire_dialog_action_sort_activate (GtkAction *a) if (PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_sort_parent_class)->activate) PSPPIRE_DIALOG_ACTION_CLASS (psppire_dialog_action_sort_parent_class)->activate (pda); + + g_object_unref (xml); } static void