summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-23 10:45:57 (GMT)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-02-23 10:45:57 (GMT)
commitaeaedca39671e409126491728d9ad5280b95463a (patch)
treef28d8274df480fc221a942e0b2579d5100350530
parent4b0b984159a4c643b2dfae6241bccf0509a4e077 (diff)
downloadtelepathy-yell-aeaedca39671e409126491728d9ad5280b95463a.tar.gz
telepathy-yell-aeaedca39671e409126491728d9ad5280b95463a.tar.xz
CallContent: free name when destroying the object
-rw-r--r--telepathy-yell/call-content.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-yell/call-content.c b/telepathy-yell/call-content.c
index b75e1ce..f1ab44b 100644
--- a/telepathy-yell/call-content.c
+++ b/telepathy-yell/call-content.c
@@ -233,6 +233,7 @@ tpy_call_content_dispose (GObject *object)
{
TpyCallContent *self = TPY_CALL_CONTENT (object);
+ tp_clear_pointer (&self->priv->name, g_free);
tp_clear_object (&self->priv->result);
g_list_free_full (self->priv->streams, g_object_unref);
@@ -282,6 +283,7 @@ tpy_call_content_set_property (
switch (property_id)
{
case PROP_NAME:
+ g_assert (self->priv->name == NULL);
self->priv->name = g_value_dup_string (value);
break;
case PROP_MEDIA_TYPE: