13
0

Plug a memory leak (recent session list, session info)

This commit is contained in:
Robin Gareus 2017-01-20 01:49:23 +01:00
parent 7e766be2cb
commit 4ee8a0e9fc

View File

@ -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
}