[byzanz] Set file to NULL after unreffing it



commit 62abfcb0c7a854d4d767263fdc080dbaa3a430b2
Author: Benjamin Otte <otte gnome org>
Date:   Sun Aug 30 19:10:01 2009 +0200

    Set file to NULL after unreffing it

 src/byzanzapplet.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/byzanzapplet.c b/src/byzanzapplet.c
index 148c4a7..02a8dc8 100644
--- a/src/byzanzapplet.c
+++ b/src/byzanzapplet.c
@@ -245,8 +245,10 @@ panel_applet_start_response (GtkWidget *dialog, int response, AppletPrivate *pri
 out:
   gtk_widget_destroy (dialog);
   priv->dialog = NULL;
-  if (priv->file)
+  if (priv->file) {
     g_object_unref (priv->file);
+    priv->file = NULL;
+  }
   byzanz_applet_update (priv);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]