[gupnp-av] fix memory leak on GUPnPAVXMLDoc



commit 221ad831d27ce65ff3d3034453a577a2f9cbe359
Author: Thomas Martinez <thomas martinez parrot com>
Date:   Thu Feb 9 15:03:56 2017 +0100

    fix memory leak on GUPnPAVXMLDoc
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778396

 libgupnp-av/xml-util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp-av/xml-util.c b/libgupnp-av/xml-util.c
index da718b2..4e82a2b 100644
--- a/libgupnp-av/xml-util.c
+++ b/libgupnp-av/xml-util.c
@@ -77,6 +77,7 @@ xml_doc_unref (GUPnPAVXMLDoc *doc)
         if (g_atomic_int_dec_and_test (&doc->refcount)) {
                 xmlFreeDoc (doc->doc);
                 doc->doc = NULL;
+                g_free(doc);
         }
 }
 


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