[rhythmbox] shell: stop leaking pixbuf loaders
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] shell: stop leaking pixbuf loaders
- Date: Tue, 3 Jan 2012 20:21:32 +0000 (UTC)
commit 84387c6d983d67e6ffe116ccd74963196f7f1a1b
Author: Jonathan Matthew <jonathan d14n org>
Date: Thu Dec 29 14:07:15 2011 +1100
shell: stop leaking pixbuf loaders
shell/rb-shell.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index 09b01a4..bd26651 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -499,6 +499,7 @@ load_external_art_cb (RBExtDB *store, GValue *value, RBShell *shell)
if (error != NULL) {
rb_debug ("unable to load pixbuf: %s", error->message);
g_clear_error (&error);
+ g_object_unref (loader);
return NULL;
}
@@ -513,6 +514,8 @@ load_external_art_cb (RBExtDB *store, GValue *value, RBShell *shell)
v = g_new0 (GValue, 1);
g_value_init (v, GDK_TYPE_PIXBUF);
g_value_set_object (v, pixbuf);
+ g_object_unref (loader);
+
return v;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]