[Xfce4-commits] [xfce/thunar] 01/02: Fix possible memory leak

noreply at xfce.org noreply at xfce.org
Mon Aug 26 22:40:37 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       x   f   c   e   -   4   .   1   4   
   in repository xfce/thunar.

commit edb22b5071c9d00808c5d6333b4cadbd18c028e3
Author: Reuben Green <reubengreen73 at gmail.com>
Date:   Sat Aug 24 16:49:44 2019 +0100

    Fix possible memory leak
    
    Adds some calls to g_object_unref to the code in thunar_transfer_job_execute which moves files out
    of the trash, in order to prevent possible memory leaks when such a move operation is canceled.
---
 thunar/thunar-transfer-job.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/thunar/thunar-transfer-job.c b/thunar/thunar-transfer-job.c
index cfa932a..4abe42a 100644
--- a/thunar/thunar-transfer-job.c
+++ b/thunar/thunar-transfer-job.c
@@ -923,6 +923,7 @@ thunar_transfer_job_execute (ExoJob  *job,
           if (exo_job_set_error_if_cancelled (job, &err))
             {
               g_object_unref (target_parent);
+              g_object_unref (info);
               break;
             }
 
@@ -946,6 +947,7 @@ thunar_transfer_job_execute (ExoJob  *job,
                 {
                   g_object_unref (target_parent);
                   g_free (parent_display_name);
+                  g_object_unref (info);
                   break;
                 }
 
@@ -966,6 +968,7 @@ thunar_transfer_job_execute (ExoJob  *job,
 
                   g_object_unref (target_parent);
                   g_free (parent_display_name);
+                  g_object_unref (info);
                   break;
                 }
 

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


More information about the Xfce4-commits mailing list