Fix a memory leak when fingerprinting songs. Fixes issue 3403.

This commit is contained in:
David Sansome 2013-01-06 07:51:48 +11:00
parent 97c1d3c345
commit 145b811eef
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ QString Chromaprinter::CreateFingerprint() {
gst_app_sink_set_callbacks(reinterpret_cast<GstAppSink*>(sink), &callbacks, this, NULL);
gst_bus_set_sync_handler(gst_pipeline_get_bus(GST_PIPELINE(pipeline_)), NULL, NULL);
g_source_remove(bus_callback_id);
gst_element_set_state(pipeline_, GST_STATE_NULL);
gst_object_unref(pipeline_);
return fingerprint;