[gnome-shell] main: Fix a memory leak
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] main: Fix a memory leak
- Date: Fri, 19 Jun 2015 12:06:49 +0000 (UTC)
commit ad297ea9dcef1961713278469cb2cd28baa82676
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jun 19 13:47:23 2015 +0200
main: Fix a memory leak
We are pointlessly calling g_settings_list_keys() twice, without
freeing the result from the first call.
src/main.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 65617d9..9e86a41 100644
--- a/src/main.c
+++ b/src/main.c
@@ -181,7 +181,6 @@ shell_prefs_init (void)
g_object_get (G_OBJECT (settings), "schema-id", &schema_id, NULL);
- keys = g_settings_list_keys (settings);
for (keys = k = g_settings_list_keys (settings); *k; k++)
meta_prefs_override_preference_schema (*k, schema_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]