Fixed some big memory leaks with audio samples and ffmpeg (pprof ./openshot-example "/tmp/openshot-example.30691._main_-end.heap" --inuse_objects --lines --heapcheck --edgefraction=1e-10 --nodefraction=1e-10 --gv

This commit is contained in:
Jonathan Thomas
2015-03-04 15:26:08 -06:00
parent c27e4a1426
commit b703f44f7c
4 changed files with 48 additions and 28 deletions

View File

@@ -97,7 +97,7 @@ int main(int argc, char* argv[])
//r9.GetFrame(frame_number)->DisplayWaveform();
//f->DisplayWaveform();
//f->AddColor(r9.info.width, r9.info.height, "blue");
//w9.WriteFrame(f);
w9.WriteFrame(f);
//frame++;
}
@@ -112,6 +112,7 @@ int main(int argc, char* argv[])
// Close timeline
r9.Close();
map.Close();
/* ---------------- */
cout << "happy ending" << endl;