[gnome-panel] layout: fix memory leaks
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] layout: fix memory leaks
- Date: Sun, 21 Mar 2021 15:44:12 +0000 (UTC)
commit 48f51d1fb2779a33fd45b6325ea759cc2e73e4f1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 21 15:08:05 2021 +0200
layout: fix memory leaks
Coverity CID: #1502709, #1502714
gnome-panel/panel-layout.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gnome-panel/panel-layout.c b/gnome-panel/panel-layout.c
index 21d62299a..3ae48af03 100644
--- a/gnome-panel/panel-layout.c
+++ b/gnome-panel/panel-layout.c
@@ -432,6 +432,9 @@ panel_layout_append_group_helper (GKeyFile *keyfile,
"Unknown key '%s' for %s",
keyfile_keys[i],
type_for_error_message);
+ g_strfreev (keyfile_keys);
+ g_object_unref (settings);
+ g_free (unique_id);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]