diff options
author | Antonio Ospite <ao2@ao2.it> | 2014-10-09 11:51:16 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-10-10 11:29:25 +0100 |
commit | 28d9826fd511feb82d358674c4d5d0bddd7f0ff2 (patch) | |
tree | 1be80c6e69e0f97b161bf1b72dfc5dc892603ee7 /ext/fluidsynth | |
parent | 684d0418969820f165978355104400167515b5c4 (diff) | |
download | gstreamer-plugins-bad-28d9826fd511feb82d358674c4d5d0bddd7f0ff2.tar.gz |
fluiddec: fix some memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=738223
Diffstat (limited to 'ext/fluidsynth')
-rw-r--r-- | ext/fluidsynth/gstfluiddec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fluidsynth/gstfluiddec.c b/ext/fluidsynth/gstfluiddec.c index 24b3566c0..535b3f405 100644 --- a/ext/fluidsynth/gstfluiddec.c +++ b/ext/fluidsynth/gstfluiddec.c @@ -563,10 +563,14 @@ gst_fluid_dec_open (GstFluidDec * fluiddec) fluiddec->sf = fluid_synth_sfload (fluiddec->synth, filename, 1); if (fluiddec->sf != -1) { GST_DEBUG_OBJECT (fluiddec, "loaded soundfont file %s", filename); + g_free (filename); + g_dir_close (dir); + g_free (soundfont_path); goto done; } GST_DEBUG_OBJECT (fluiddec, "could not load soundfont file %s", filename); + g_free (filename); } g_dir_close (dir); g_free (soundfont_path); |