mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
7383aa1baa
commit
9d13ff6b53
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue