[rhythmbox] android: remove the rescan timeout when disposed



commit 4dbbc4cb4871427260fe08fea963a3036346f6ca
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Sep 17 09:50:09 2017 +1000

    android: remove the rescan timeout when disposed

 plugins/android/rb-android-source.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/android/rb-android-source.c b/plugins/android/rb-android-source.c
index 19c2d62..c6f2343 100644
--- a/plugins/android/rb-android-source.c
+++ b/plugins/android/rb-android-source.c
@@ -917,6 +917,9 @@ impl_dispose (GObject *object)
                rhythmdb_import_job_cancel (priv->import_job);
                g_clear_object (&priv->import_job);
        }
+       if (priv->rescan_id != 0) {
+               g_source_remove (priv->rescan_id);
+       }
 
        g_clear_object (&priv->device_info);
        g_clear_object (&priv->mount);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]