[empathy] init_contact_avatar_with_size: don't leak the pixbuf
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] init_contact_avatar_with_size: don't leak the pixbuf
- Date: Thu, 1 Apr 2010 08:17:23 +0000 (UTC)
commit 99bda309f129b94db112c52dfa674cd7355f4374
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Mar 31 12:59:46 2010 +0200
init_contact_avatar_with_size: don't leak the pixbuf
src/empathy-call-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 9c83437..6680d00 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1201,6 +1201,9 @@ init_contact_avatar_with_size (EmpathyContact *contact,
}
gtk_image_set_from_pixbuf (GTK_IMAGE (image_widget), pixbuf_avatar);
+
+ if (pixbuf_avatar != NULL)
+ g_object_unref (pixbuf_avatar);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]