[gupnp-tools] Fixed memory leak in compare_container(...)



commit 637d6a947efcb721d80b2c6960644404d5279ecc
Author: pasdVn <pasdVn3 gmx de>
Date:   Mon Jan 7 18:36:48 2013 +0100

    Fixed memory leak in compare_container(...)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691304

 src/av-cp/playlist-treeview.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/av-cp/playlist-treeview.c b/src/av-cp/playlist-treeview.c
index 3906037..ff1f8e1 100644
--- a/src/av-cp/playlist-treeview.c
+++ b/src/av-cp/playlist-treeview.c
@@ -483,8 +483,11 @@ compare_container (GtkTreeModel *model,
                             4, &container_id,
                             5, &is_container, -1);
 
-        if (!is_container)
+        if (!is_container) {
+                g_free (container_id);
+
                 return found;
+        }
 
         if (container_id == NULL)
                 return found;



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