projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e766be
)
Plug a memory leak (recent session list, session info)
author
Robin Gareus
<robin@gareus.org>
Fri, 20 Jan 2017 00:49:23 +0000
(
01:49
+0100)
committer
Robin Gareus
<robin@gareus.org>
Fri, 20 Jan 2017 00:49:23 +0000
(
01:49
+0100)
libs/ardour/session_state.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index b4b08de44dbfd8b33d72a1d98d39b84410bffa93..04f647058206a57917e4b4d47aed38bcefefb3fe 100644
(file)
--- a/
libs/ardour/session_state.cc
+++ b/
libs/ardour/session_state.cc
@@
-4452,6
+4452,7
@@
Session::get_info_from_path (const string& xmlpath, float& sample_rate, SampleFo
if (node == NULL) {
xmlFreeParserCtxt(ctxt);
+ xmlFreeDoc (doc);
return -1;
}
@@
-4490,6
+4491,7
@@
Session::get_info_from_path (const string& xmlpath, float& sample_rate, SampleFo
}
xmlFreeParserCtxt(ctxt);
+ xmlFreeDoc (doc);
return !(found_sr && found_data_format); // zero if they are both found
}