Fix a memory leak when fingerprinting songs. Fixes issue 3403.
This commit is contained in:
parent
97c1d3c345
commit
145b811eef
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user