[rygel] core: Fix memory leak in Rygel.DescriptionFile



commit ca2faa22a1ab1f911ed388c5433eae2ef696a3ef
Author: Nirbheek Chauhan <nirbheek chauhan collabora co uk>
Date:   Wed Apr 17 10:55:12 2013 +0530

    core: Fix memory leak in Rygel.DescriptionFile
    
    Need to do manual memory management for libxml2 API
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698260

 src/librygel-core/rygel-description-file.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/librygel-core/rygel-description-file.vala b/src/librygel-core/rygel-description-file.vala
index f34908e..863bded 100644
--- a/src/librygel-core/rygel-description-file.vala
+++ b/src/librygel-core/rygel-description-file.vala
@@ -204,6 +204,7 @@ public class Rygel.DescriptionFile : Object {
         assert (!xpath_object->nodesetval->is_empty ());
 
         xpath_object->nodesetval->item (0)->set_content (new_type);
+        delete xpath_object;
     }
 
     /**


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