[gnome-settings-daemon] housekeeping: Call stop from finalize
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: Call stop from finalize
- Date: Fri, 17 Oct 2014 15:27:31 +0000 (UTC)
commit fb3b136787f2a3135d859d2930d3bd029c91bbed
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Oct 17 17:08:26 2014 +0200
housekeeping: Call stop from finalize
plugins/housekeeping/gsd-housekeeping-manager.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-housekeeping-manager.c b/plugins/housekeeping/gsd-housekeeping-manager.c
index ac15c2b..df0ff3a 100644
--- a/plugins/housekeeping/gsd-housekeeping-manager.c
+++ b/plugins/housekeeping/gsd-housekeeping-manager.c
@@ -445,8 +445,20 @@ gsd_housekeeping_manager_stop (GsdHousekeepingManager *manager)
}
static void
+gsd_housekeeping_manager_finalize (GObject *object)
+{
+ gsd_housekeeping_manager_stop (GSD_HOUSEKEEPING_MANAGER (object));
+
+ G_OBJECT_CLASS (gsd_housekeeping_manager_parent_class)->finalize (object);
+}
+
+static void
gsd_housekeeping_manager_class_init (GsdHousekeepingManagerClass *klass)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->finalize = gsd_housekeeping_manager_finalize;
+
g_type_class_add_private (klass, sizeof (GsdHousekeepingManagerPrivate));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]