iFix a memory leak

Original commit message from CVS:
iFix a memory leak
This commit is contained in:
Iain Holmes 2004-09-16 21:14:46 +00:00
parent e38fff6ecf
commit 1015073dfe
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-09-16 Iain <iaingnome@gmail.com>
* ext/ffmpeg/gstffmpegmux.c (gst_ffmpegmux_register): Free name fix
leak.
2004-07-21 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain):

2
common

@ -1 +1 @@
Subproject commit 8f16cd236828a8bb7be51696029e0e24b7a6c517
Subproject commit 5ec931d243c53ddda5b2cbb9a2c21ce89747bcb4

View file

@ -521,8 +521,12 @@ gst_ffmpegmux_register (GstPlugin * plugin)
/* create the type now */
type = g_type_register_static (GST_TYPE_ELEMENT, type_name, &typeinfo, 0);
if (!gst_element_register (plugin, type_name, GST_RANK_NONE, type))
if (!gst_element_register (plugin, type_name, GST_RANK_NONE, type)) {
g_free (type_name);
return FALSE;
}
g_free (type_name);
g_hash_table_insert (global_plugins,
GINT_TO_POINTER (type), (gpointer) params);