[empathy: 40/80] Use tp_clear_pointer
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 40/80] Use tp_clear_pointer
- Date: Fri, 10 Jun 2011 08:42:31 +0000 (UTC)
commit fcd9a97dbf9c6bf6e9e8c7ecd7f8cacdb5c34b4e
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Wed Apr 27 10:36:43 2011 +0100
Use tp_clear_pointer
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 01155b8..5a391c0 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]