[gnome-terminal/gnome-3-8] window: Clear the weak ref before freeing the data



commit b2c0f2e935792d9a8445198c702a1d914573a4f3
Author: Christian Persch <chpe gnome org>
Date:   Sat Sep 14 12:02:18 2013 +0200

    window: Clear the weak ref before freeing the data
    
    This fixes a crash introduced in commit 9f2ba3d5b642973a21e7916fe1a60a5c44126720.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706349
    (cherry picked from commit ea9e71771be2afa2986d2a93d4d03fe301645456)

 src/terminal-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 24badf7..10a5462 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1006,6 +1006,7 @@ update_edit_menu_cb (GtkClipboard *clipboard,
 
   g_object_unref (window);
  out:
+  g_weak_ref_clear (ref);
   g_slice_free (GWeakRef, ref);
 }
 


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