From fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 27 Apr 2011 10:36:43 +0100 Subject: Use tp_clear_pointer --- libempathy-gtk/empathy-log-window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 01155b892..5a391c0c4 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -230,8 +230,7 @@ ctx_free (Ctx *ctx) { tp_clear_object (&ctx->account); tp_clear_object (&ctx->entity); - if (ctx->date != NULL) - g_date_free (ctx->date); + tp_clear_pointer (&ctx->date, g_date_free); g_slice_free (Ctx, ctx); } -- cgit v1.2.3