[gnome-builder] gsettings: release egg signal group in dispose
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gsettings: release egg signal group in dispose
- Date: Mon, 11 May 2015 18:08:51 +0000 (UTC)
commit 81fd7d76329f6dee09613313fd2c0dbd70f00812
Author: Christian Hergert <christian hergert me>
Date: Mon May 11 11:08:44 2015 -0700
gsettings: release egg signal group in dispose
Release our signal group while we are in our dispose cycle, rather than
when it is too late to handle weak ref callbacks.
libide/gsettings/ide-gsettings-file-settings.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/gsettings/ide-gsettings-file-settings.c b/libide/gsettings/ide-gsettings-file-settings.c
index 2ef3239..76bb3e3 100644
--- a/libide/gsettings/ide-gsettings-file-settings.c
+++ b/libide/gsettings/ide-gsettings-file-settings.c
@@ -135,14 +135,14 @@ ide_gsettings_file_settings_constructed (GObject *object)
}
static void
-ide_gsettings_file_settings_finalize (GObject *object)
+ide_gsettings_file_settings_dispose (GObject *object)
{
IdeGsettingsFileSettings *self = (IdeGsettingsFileSettings *)object;
g_clear_object (&self->signal_group);
g_clear_object (&self->language_settings);
- G_OBJECT_CLASS (ide_gsettings_file_settings_parent_class)->finalize (object);
+ G_OBJECT_CLASS (ide_gsettings_file_settings_parent_class)->dispose (object);
}
static void
@@ -151,7 +151,7 @@ ide_gsettings_file_settings_class_init (IdeGsettingsFileSettingsClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->constructed = ide_gsettings_file_settings_constructed;
- object_class->finalize = ide_gsettings_file_settings_finalize;
+ object_class->dispose = ide_gsettings_file_settings_dispose;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]