fluiddec: fix some memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=738223
This commit is contained in:
Antonio Ospite 2014-10-09 11:51:16 +02:00 committed by Tim-Philipp Müller
parent 684d041896
commit 28d9826fd5

View file

@ -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);