diff --git a/ChangeLog b/ChangeLog index 149c8b478d..05a889b2b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-25 Jan Schmidt + + * gst/gstbin.c: (gst_bin_handle_message_func): + Don't leak clock messages. + 2005-11-25 Wim Taymans * gst/gstutils.c: (gst_util_uint64_scale_int64), diff --git a/gst/gstbin.c b/gst/gstbin.c index ca665c86a0..9a3e0aac80 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -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: