aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-08 11:16:46 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commitcb703ba93de027d1b62b1a9716ca7d9c0d90133b (patch)
treea7c99918b291ae9abc500d0c5928641d8cc84423 /libempathy-gtk/empathy-ui-utils.c
parentdf6ea1a0a3bdef9fc134bfaaa02ca3614398ca16 (diff)
downloadgsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.gz
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.bz2
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.lz
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.xz
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.tar.zst
gsoc2013-empathy-cb703ba93de027d1b62b1a9716ca7d9c0d90133b.zip
Take advantage of the tp_clear_* utility functions.
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 9b984a7ce..15b5871c6 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -39,6 +39,7 @@
#include <gtk/gtk.h>
#include <gio/gio.h>
+#include <telepathy-glib/util.h>
#include <folks/folks.h>
#include "empathy-ui-utils.h"
@@ -606,8 +607,7 @@ avatar_file_load_contents_cb (GObject *object,
out:
g_clear_error (&error);
g_free (data);
- if (loader != NULL)
- g_object_unref (loader);
+ tp_clear_object (&loader);
pixbuf_avatar_from_individual_closure_free (closure);
}