[gnome-photos] tracker-change-monitor: Remove pending_events_id during destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tracker-change-monitor: Remove pending_events_id during destruction
- Date: Tue, 5 Apr 2016 10:00:27 +0000 (UTC)
commit 9c86fe6ac5cde6dfe054c78d3bb29dc6bc5585a2
Author: Rafael Fonseca <r4f4rfs gmail com>
Date: Mon Mar 21 17:25:06 2016 +0100
tracker-change-monitor: Remove pending_events_id during destruction
https://bugzilla.gnome.org/show_bug.cgi?id=763908
src/photos-tracker-change-monitor.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-tracker-change-monitor.c b/src/photos-tracker-change-monitor.c
index 478a04a..fc5870f 100644
--- a/src/photos-tracker-change-monitor.c
+++ b/src/photos-tracker-change-monitor.c
@@ -307,11 +307,9 @@ photos_tracker_change_monitor_add_pending_event (PhotosTrackerChangeMonitor *sel
if (self->pending_events->length >= CHANGE_MONITOR_MAX_ITEMS)
photos_tracker_change_monitor_process_events (self);
else
- self->pending_events_id = g_timeout_add_full (G_PRIORITY_DEFAULT,
- CHANGE_MONITOR_TIMEOUT,
- (GSourceFunc) photos_tracker_change_monitor_process_events,
- g_object_ref (self),
- g_object_unref);
+ self->pending_events_id = g_timeout_add (CHANGE_MONITOR_TIMEOUT,
+ (GSourceFunc) photos_tracker_change_monitor_process_events,
+ self);
}
@@ -366,6 +364,8 @@ photos_tracker_change_monitor_dispose (GObject *object)
{
PhotosTrackerChangeMonitor *self = PHOTOS_TRACKER_CHANGE_MONITOR (object);
+ photos_tracker_change_monitor_remove_timeout (self);
+
g_clear_object (&self->queue);
g_clear_object (&self->resource_service);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]