[libbluray-devel] meta_parse: fix memory leaks

Hannes Domani git at videolan.org
Sun May 8 16:21:02 CEST 2016


libbluray | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu May  5 05:05:06 2016 +0200| [6ce62e8f2b3054dded3c2938c8072c5fe8cd8bdd] | committer: hpi1

meta_parse: fix memory leaks

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6ce62e8f2b3054dded3c2938c8072c5fe8cd8bdd
---

 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);
         }



More information about the libbluray-devel mailing list