summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-01-20 01:49:23 +0100
committerRobin Gareus <robin@gareus.org>2017-01-20 01:49:23 +0100
commit4ee8a0e9fc2a35441e2bb016f173adf5e521660d (patch)
treea0bdeaf59794dcc549e2f9f77cf1ecd333269504 /libs/ardour/session_state.cc
parent7e766be2cbe159a9d584009e0982a8fdb65c863b (diff)
Plug a memory leak (recent session list, session info)
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index b4b08de44d..04f6470582 100644
--- 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
}