mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
fluiddec: fix some memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=738223
This commit is contained in:
parent
684d041896
commit
28d9826fd5
1 changed files with 4 additions and 0 deletions
|
@ -563,10 +563,14 @@ gst_fluid_dec_open (GstFluidDec * fluiddec)
|
||||||
fluiddec->sf = fluid_synth_sfload (fluiddec->synth, filename, 1);
|
fluiddec->sf = fluid_synth_sfload (fluiddec->synth, filename, 1);
|
||||||
if (fluiddec->sf != -1) {
|
if (fluiddec->sf != -1) {
|
||||||
GST_DEBUG_OBJECT (fluiddec, "loaded soundfont file %s", filename);
|
GST_DEBUG_OBJECT (fluiddec, "loaded soundfont file %s", filename);
|
||||||
|
g_free (filename);
|
||||||
|
g_dir_close (dir);
|
||||||
|
g_free (soundfont_path);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
GST_DEBUG_OBJECT (fluiddec, "could not load soundfont file %s",
|
GST_DEBUG_OBJECT (fluiddec, "could not load soundfont file %s",
|
||||||
filename);
|
filename);
|
||||||
|
g_free (filename);
|
||||||
}
|
}
|
||||||
g_dir_close (dir);
|
g_dir_close (dir);
|
||||||
g_free (soundfont_path);
|
g_free (soundfont_path);
|
||||||
|
|
Loading…
Reference in a new issue