[tracker/writeback-refactor-rebase: 40/43] miners/fs: Codestyle improvements
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/writeback-refactor-rebase: 40/43] miners/fs: Codestyle improvements
- Date: Tue, 26 Jul 2011 09:34:13 +0000 (UTC)
commit 4d4fba2b44a3fbd7b0cf82872a592cd1a25cdadf
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Jul 22 17:37:48 2011 +0200
miners/fs: Codestyle improvements
src/miners/fs/tracker-writeback-dispatcher.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index 43c2ee7..0290da2 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -167,7 +167,6 @@ writeback_dispatcher_finalize (GObject *object)
}
}
-
static void
tracker_writeback_dispatcher_init (TrackerWritebackDispatcher *object)
{
@@ -233,6 +232,7 @@ writeback_file_data_free (WritebackFileData *data)
if (data->self) {
g_object_weak_unref (G_OBJECT (data->self), self_weak_notify, data);
}
+
g_object_unref (data->fs);
g_object_unref (data->file);
g_strfreev (data->rdf_types);
@@ -244,11 +244,14 @@ static void
self_weak_notify (gpointer data, GObject *where_the_object_was)
{
WritebackFileData *udata = data;
+
/* Shut down while retrying writeback */
g_debug ("Shutdown while retrying WRITEBACK after unmount, not retrying anymore");
+
if (udata->retry_timeout != 0) {
g_source_remove (udata->retry_timeout);
}
+
udata->self = NULL;
writeback_file_data_free (udata);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]