[rhythmbox] audioscrobbler: add missing ref on profile pages
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] audioscrobbler: add missing ref on profile pages
- Date: Mon, 23 Feb 2015 12:18:33 +0000 (UTC)
commit de1621b20e31a87f791f09e0080ba78cf956321b
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Feb 23 20:52:09 2015 +1000
audioscrobbler: add missing ref on profile pages
plugins/audioscrobbler/rb-audioscrobbler-plugin.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
index 16a7305..98eacf9 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
@@ -240,6 +240,7 @@ lastfm_settings_changed_cb (GSettings *settings,
lastfm);
g_object_unref (shell);
g_object_unref (lastfm);
+ g_object_ref (plugin->lastfm_page);
} else if (enabled == FALSE && plugin->lastfm_page != NULL) {
rb_display_page_delete_thyself (plugin->lastfm_page);
g_object_unref (plugin->lastfm_page);
@@ -269,6 +270,7 @@ librefm_settings_changed_cb (GSettings *settings,
librefm);
g_object_unref (librefm);
g_object_unref (shell);
+ g_object_ref (plugin->librefm_page);
} else if (enabled == FALSE && plugin->librefm_page != NULL) {
rb_display_page_delete_thyself (plugin->librefm_page);
g_object_unref (plugin->librefm_page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]