projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
684d041
)
fluiddec: fix some memory leaks
author
Antonio Ospite
<ao2@ao2.it>
Thu, 9 Oct 2014 09:51:16 +0000
(11:51 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 10 Oct 2014 10:29:25 +0000
(11:29 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=738223
ext/fluidsynth/gstfluiddec.c
patch
|
blob
|
history
diff --git
a/ext/fluidsynth/gstfluiddec.c
b/ext/fluidsynth/gstfluiddec.c
index
24b3566
..
535b3f4
100644
(file)
--- 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);