Maemo: Do not unref the dialog.
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Sep 2010 16:45:19 +0000 (18:45 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Oct 2010 15:36:18 +0000 (17:36 +0200)
src/frontends/maemo/src/strongswan-status.c

index 48a8c74..24f2442 100644 (file)
@@ -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);