summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-22 09:02:52 +0100
committerLuke from DC <[email protected]>2021-02-13 19:39:57 +0000
commit4b84cdebe407554da2c1b3c9c0e9a3d45e4d1871 (patch)
treee684ba1e24b07b4447a2af7d577a53b2581c9230 /plugins
parent102871cc2c42e8911c7bfe39d2a9d5d493bfc73d (diff)
downloadmate-settings-daemon-4b84cdebe407554da2c1b3c9c0e9a3d45e4d1871.tar.bz2
mate-settings-daemon-4b84cdebe407554da2c1b3c9c0e9a3d45e4d1871.tar.xz
housekeeping: override finalize method in MsdHousekeepingManager
Diffstat (limited to 'plugins')
-rw-r--r--plugins/housekeeping/msd-housekeeping-manager.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-housekeeping-manager.c b/plugins/housekeeping/msd-housekeeping-manager.c
index 9d5ed80..a873a66 100644
--- a/plugins/housekeeping/msd-housekeeping-manager.c
+++ b/plugins/housekeeping/msd-housekeeping-manager.c
@@ -265,6 +265,13 @@ msd_housekeeping_manager_start (MsdHousekeepingManager *manager,
return TRUE;
}
+static void
+msd_housekeeping_manager_finalize (GObject *object)
+{
+ msd_housekeeping_manager_stop (MSD_HOUSEKEEPING_MANAGER (object));
+ G_OBJECT_CLASS (msd_housekeeping_manager_parent_class)->finalize (object);
+}
+
void
msd_housekeeping_manager_stop (MsdHousekeepingManager *manager)
{
@@ -297,6 +304,9 @@ msd_housekeeping_manager_stop (MsdHousekeepingManager *manager)
static void
msd_housekeeping_manager_class_init (MsdHousekeepingManagerClass *klass)
{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->finalize = msd_housekeeping_manager_finalize;
}
static void