aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
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);
}