[Xfce4-commits] [xfce/thunar] 01/01: Prevent premature disposal of clipboard manager (Bug 15635)

noreply at xfce.org noreply at xfce.org
Fri Jul 26 13:43:54 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit 9c0d4a03ec3287b4b1fbc28b451dc78ad6f06d68
Author: Reuben Green <reubengreen73 at gmail.com>
Date:   Thu Jul 25 08:47:46 2019 +0100

    Prevent premature disposal of clipboard manager (Bug 15635)
---
 thunar/thunar-window.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index f626baf..7755725 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1428,10 +1428,13 @@ thunar_window_unrealize (GtkWidget *widget)
 
   /* disconnect from the clipboard manager */
   g_signal_handlers_disconnect_by_func (G_OBJECT (window->clipboard), gtk_widget_queue_draw, widget);
-  g_object_unref (G_OBJECT (window->clipboard));
 
   /* let the GtkWidget class unrealize the window */
   (*GTK_WIDGET_CLASS (thunar_window_parent_class)->unrealize) (widget);
+
+  /* drop the reference on the clipboard manager, we do this after letting the GtkWidget class
+   * unrealise the window to prevent the clipboard being disposed during the unrealize  */
+  g_object_unref (G_OBJECT (window->clipboard));
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list