diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-23 14:33:21 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-23 14:33:21 +0100 |
commit | ed698faa22b7d3fa46b5104ffdaede5c33807c6c (patch) | |
tree | 0e23438f483bb3e864dbc8031d21c5c925b96c02 | |
parent | d349ec07c389d0cf867aa90b19062b55b3170b5b (diff) | |
download | telepathy-logger-ed698faa22b7d3fa46b5104ffdaede5c33807c6c.tar.gz |
entity: use tp_clear_pointer()
-rw-r--r-- | telepathy-logger/entity.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/telepathy-logger/entity.c b/telepathy-logger/entity.c index 9a94143..5f12171 100644 --- a/telepathy-logger/entity.c +++ b/telepathy-logger/entity.c @@ -22,6 +22,8 @@ #include "config.h" #include "entity-internal.h" +#include <telepathy-glib/util.h> + #define DEBUG_FLAG TPL_DEBUG_ENTITY #include <telepathy-logger/debug-internal.h> #include <telepathy-logger/util-internal.h> @@ -64,10 +66,8 @@ tpl_entity_finalize (GObject *obj) TplEntity *self = TPL_ENTITY (obj); TplEntityPriv *priv = self->priv; - g_free (priv->alias); - priv->alias = NULL; - g_free (priv->identifier); - priv->identifier = NULL; + tp_clear_pointer (&priv->alias, g_free); + tp_clear_pointer (&priv->identifier, g_free); G_OBJECT_CLASS (tpl_entity_parent_class)->finalize (obj); } |