[Xfce4-commits] [xfce/thunar] 01/01: Avoid segfault on file operations (Bug #14281)

noreply at xfce.org noreply at xfce.org
Sun Jul 29 22:38:46 CEST 2018


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

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   2   
   in repository xfce/thunar.

commit a754e7f95ea6080d72c6344670d14ab111062bf8
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sun Jul 29 17:33:32 2018 -0300

    Avoid segfault on file operations (Bug #14281)
    
    This is not a definitive fix, but a stopgap.
    CRITICAL messages may be emitted, but thunar shouldn't crash
    anymore.
    Bug #14281 contains more details and will remain open until
    we properly fix this.
---
 thunar/thunar-folder.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/thunar/thunar-folder.c b/thunar/thunar-folder.c
index a90988e..d9fa1b4 100644
--- a/thunar/thunar-folder.c
+++ b/thunar/thunar-folder.c
@@ -421,6 +421,8 @@ thunar_folder_files_ready (ThunarJob    *job,
 static gboolean
 thunar_folder_content_type_loader_idle (gpointer data)
 {
+  _thunar_return_val_if_fail (THUNAR_IS_FOLDER (data), FALSE);
+
   ThunarFolder *folder = THUNAR_FOLDER (data);
   GList        *lp;
 
@@ -447,6 +449,8 @@ thunar_folder_content_type_loader_idle (gpointer data)
 static void
 thunar_folder_content_type_loader_idle_destroyed (gpointer data)
 {
+  _thunar_return_if_fail (THUNAR_IS_FOLDER (data));
+
   THUNAR_FOLDER (data)->content_type_idle_id = 0;
 }
 

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


More information about the Xfce4-commits mailing list