Commit 64a3268c authored by Jamie Nicol's avatar Jamie Nicol
Browse files

audioscrobbler: save modified queue in dispose instead of finalize

https://bugzilla.gnome.org/show_bug.cgi?id=652964
parent 8cddf1d9
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment