[gnome-builder] libide/core: dont leak memory settings instance



commit 15337c6a498bb5fa5157e52a93ea2d19c017a1c9
Author: Christian Hergert <chergert redhat com>
Date:   Thu Aug 18 17:20:59 2022 -0700

    libide/core: dont leak memory settings instance

 src/libide/core/ide-layered-settings.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libide/core/ide-layered-settings.c b/src/libide/core/ide-layered-settings.c
index dd9adb0be..dd0eeda24 100644
--- a/src/libide/core/ide-layered-settings.c
+++ b/src/libide/core/ide-layered-settings.c
@@ -159,6 +159,8 @@ ide_layered_settings_finalize (GObject *object)
   g_clear_pointer (&self->schema_id, g_free);
   g_clear_pointer (&self->path, g_free);
 
+  g_clear_object (&self->memory_settings);
+
   G_OBJECT_CLASS (ide_layered_settings_parent_class)->finalize (object);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]