[rhythmbox/v0.13.x] audioscrobbler: save modified queue in dispose instead of finalize
- From: Jamie Nicol <jamien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/v0.13.x] audioscrobbler: save modified queue in dispose instead of finalize
- Date: Mon, 20 Jun 2011 19:33:10 +0000 (UTC)
commit 64a3268cd97d077d6b5f048fd8dbd70836a068a0
Author: Jamie Nicol <jamie thenicols net>
Date: Mon Jun 20 00:10:34 2011 +0100
audioscrobbler: save modified queue in dispose instead of finalize
https://bugzilla.gnome.org/show_bug.cgi?id=652964
plugins/audioscrobbler/rb-audioscrobbler.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler.c b/plugins/audioscrobbler/rb-audioscrobbler.c
index 8a62426..14fb05d 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler.c
@@ -356,6 +356,9 @@ rb_audioscrobbler_dispose (GObject *object)
rb_debug ("disposing audioscrobbler");
+ /* Save any remaining entries */
+ rb_audioscrobbler_save_queue (audioscrobbler);
+
if (audioscrobbler->priv->offline_play_notify_id != 0) {
RhythmDB *db;
@@ -403,9 +406,6 @@ rb_audioscrobbler_finalize (GObject *object)
audioscrobbler = RB_AUDIOSCROBBLER (object);
- /* Save any remaining entries */
- rb_audioscrobbler_save_queue (audioscrobbler);
-
g_free (audioscrobbler->priv->sessionid);
g_free (audioscrobbler->priv->username);
g_free (audioscrobbler->priv->session_key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]