diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-27 17:36:43 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-09 19:34:55 +0800 |
commit | fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e (patch) | |
tree | aaf3ee1971c81e71bccca97cf28612a6d7bce1fa | |
parent | baf7517f523381054f85810f0b2d4e20fe05e491 (diff) | |
download | gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.tar gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.tar.gz gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.tar.bz2 gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.tar.lz gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.tar.xz gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.tar.zst gsoc2013-empathy-fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e.zip |
Use tp_clear_pointer
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |