From cdc86d423ed7d09eb0b98097c21bffaf1f89a881 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Mon, 12 Jan 2004 19:50:29 +0000 Subject: gst-libs/gst/colorbalance/colorbalancechannel.c: Adding safety check in dispose method. Original commit message from CVS: 2004-01-12 Julien MOUTTE * gst-libs/gst/colorbalance/colorbalancechannel.c: (gst_color_balance_channel_dispose): Adding safety check in dispose method. * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xcontext_get), (gst_xvimagesink_xcontext_clear), (gst_xvimagesink_interface_supported), (gst_xvimagesink_colorbalance_list_channels), (gst_xvimagesink_colorbalance_set_value), (gst_xvimagesink_colorbalance_get_value), (gst_xvimagesink_colorbalance_init), (gst_xvimagesink_get_type): Adding colorbalance interface support to set XV parameters such as HUE, BRIGHTNESS, CONTRAST, SATURATION. * sys/xvimage/xvimagesink.h: Adding the channels list for colorbalance interface. --- gst-libs/gst/colorbalance/colorbalancechannel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gst-libs/gst') diff --git a/gst-libs/gst/colorbalance/colorbalancechannel.c b/gst-libs/gst/colorbalance/colorbalancechannel.c index f8710120..e8c6e87b 100644 --- a/gst-libs/gst/colorbalance/colorbalancechannel.c +++ b/gst-libs/gst/colorbalance/colorbalancechannel.c @@ -96,7 +96,10 @@ gst_color_balance_channel_dispose (GObject *object) { GstColorBalanceChannel *channel = GST_COLOR_BALANCE_CHANNEL (object); - g_free (channel->label); + if (channel->label) + g_free (channel->label); + + channel->label = NULL; if (parent_class->dispose) parent_class->dispose (object); -- cgit v1.2.1