gst/gstbin.c: Don't leak clock messages.

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_handle_message_func):
Don't leak clock messages.
This commit is contained in:
Jan Schmidt 2005-11-25 17:06:36 +00:00
parent 7386cce105
commit 4b3455b7a8
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-11-25 Jan Schmidt <thaytan@mad.scientist.com>
* gst/gstbin.c: (gst_bin_handle_message_func):
Don't leak clock messages.
2005-11-25 Wim Taymans <wim@fluendo.com>
* gst/gstutils.c: (gst_util_uint64_scale_int64),

View file

@ -1999,6 +1999,9 @@ gst_bin_handle_message_func (GstBin * bin, GstMessage * message)
if (forward) {
goto forward;
}
/* free message */
gst_message_unref (message);
break;
}
case GST_MESSAGE_CLOCK_PROVIDE:
@ -2014,6 +2017,9 @@ gst_bin_handle_message_func (GstBin * bin, GstMessage * message)
if (forward)
goto forward;
/* free message */
gst_message_unref (message);
break;
}
default: