summaryrefslogtreecommitdiffstats
path: root/gst-libs
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/colorbalance/colorbalancechannel.c5
1 files changed, 4 insertions, 1 deletions
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);