From: Tobias Brunner Date: Mon, 20 Sep 2010 16:45:19 +0000 (+0200) Subject: Maemo: Do not unref the dialog. X-Git-Tag: 4.5.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9889c9d84ca5b2f9601b1638a5ad9b835f09b42d;p=thirdparty%2Fstrongswan.git Maemo: Do not unref the dialog. --- diff --git a/src/frontends/maemo/src/strongswan-status.c b/src/frontends/maemo/src/strongswan-status.c index 48a8c74929..24f24426ef 100644 --- a/src/frontends/maemo/src/strongswan-status.c +++ b/src/frontends/maemo/src/strongswan-status.c @@ -63,7 +63,7 @@ static void dialog_response (GtkDialog *dialog, gint response_id, StrongswanStatus *plugin) { StrongswanStatusPrivate *priv = plugin->priv; - g_object_unref (priv->dialog); + gtk_widget_destroy (priv->dialog); priv->dialog = NULL; } @@ -225,10 +225,6 @@ strongswan_status_dispose (GObject *object) { priv->conns = (g_object_unref (priv->conns), NULL); } - if (priv->dialog) - { - priv->dialog = (g_object_unref (priv->dialog), NULL); - } if (priv->icons.status_open) { g_object_unref (priv->icons.status_open);