[libbluray-devel] [PATCH] meta_parse: fix memory leaks

Hannes Domani ssbssa at yahoo.de
Thu May 5 05:05:06 CEST 2016


---
 src/libbluray/bdnav/meta_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
index a9a7edc..c65ac9e 100644
--- a/src/libbluray/bdnav/meta_parse.c
+++ b/src/libbluray/bdnav/meta_parse.c
@@ -185,7 +185,7 @@ META_ROOT *meta_parse(BD_DISC *disc)
                     root->dl_entries[i].toc_entries = NULL;
                     root->dl_entries[i].thumbnails = NULL;
                     _parseManifestNode(root_element, &root->dl_entries[i]);
-                    XML_FREE(doc);
+                    xmlFreeDoc(doc);
                 }
             X_FREE(data);
         }
-- 
2.8.1



More information about the libbluray-devel mailing list