[Xfce4-commits] <xfce4-screenshooter:master> Plug massive leak when cancelling in actions dialog.

Jérôme Guelfucci noreply at xfce.org
Fri Apr 29 19:16:01 CEST 2011


Updating branch refs/heads/master
         to 21f850342ff6b54919b3cbd60696dfac09112034 (commit)
       from a2e2bdd92b27ba6b0e8f9296339bd026dd89ddd5 (commit)

commit 21f850342ff6b54919b3cbd60696dfac09112034
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Fri Apr 29 18:18:36 2011 +0200

    Plug massive leak when cancelling in actions dialog.
    
    The pixbuf was leaked which had a huge impact on the panel plugin...

 lib/screenshooter-actions.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/screenshooter-actions.c b/lib/screenshooter-actions.c
index 88d7600..0610f6f 100644
--- a/lib/screenshooter-actions.c
+++ b/lib/screenshooter-actions.c
@@ -74,6 +74,8 @@ gboolean screenshooter_action_idle (ScreenshotData *sd)
         {
           if (!sd->plugin)
             gtk_main_quit ();
+
+          g_object_unref (sd->screenshot);
           return FALSE;
         }
     }



More information about the Xfce4-commits mailing list