ext/ffmpeg/gstffmpegdemux.c: Fix memleaks (bug #138985)

Original commit message from CVS:
reviewed by: David Schleef  <ds@schleef.org>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_register):  Fix
memleaks (bug #138985)
This commit is contained in:
David Schleef 2004-04-03 22:35:30 +00:00
parent 7383aa1baa
commit 9d13ff6b53
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-04-03 Tim-Philipp Müller <t.i.m@zen.co.uk>
reviewed by: David Schleef <ds@schleef.org>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_register): Fix
memleaks (bug #138985)
2004-03-29 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/ffmpeg/*.c: indent

View file

@ -711,6 +711,8 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
/* if it's already registered, drop it */
if (g_type_from_name (type_name)) {
gst_caps_free (videosrccaps);
gst_caps_free (audiosrccaps);
g_free (type_name);
goto next;
}
@ -745,6 +747,8 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
return FALSE;
}
g_free (type_name);
g_free (typefind_name);
if (extensions)
g_strfreev (extensions);