[gupnp-tools] common: Fix leaking the pixbuf loader



commit 10899cbfa28512bb8cac4ec1ecf170bd749cd798
Author: Jens Georg <mail jensge org>
Date:   Sun Apr 24 23:15:52 2016 +0200

    common: Fix leaking the pixbuf loader
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/common/icons.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/common/icons.c b/src/common/icons.c
index 672d307..7987fab 100644
--- a/src/common/icons.c
+++ b/src/common/icons.c
@@ -86,6 +86,7 @@ get_icon_from_message (SoupMessage    *msg,
         }
 
         gdk_pixbuf_loader_close (loader, NULL);
+        g_object_unref (loader);
 
         return pixbuf;
 }


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