[pan2] Deleted object is touched again



commit 2024f055fed830126122fefa9f0f6d4c67b59aa9
Author: Rhialto <rhialto falu nl>
Date:   Sun Mar 13 00:18:59 2016 +0100

    Deleted object is touched again

 pan/gui/body-pane.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pan/gui/body-pane.cc b/pan/gui/body-pane.cc
index 949ae38..daa2d95 100644
--- a/pan/gui/body-pane.cc
+++ b/pan/gui/body-pane.cc
@@ -1637,7 +1637,7 @@ BodyPane :: clear_attachments()
 
   {
     gtk_container_remove (GTK_CONTAINER (_att_frame), _att_toolbar);
-    if (G_IS_OBJECT(_att_toolbar)) g_object_unref(_att_toolbar);
+    _att_toolbar = NULL;
     (void)create_attachments_toolbar(_att_frame);
   }
 


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