[gnome-settings-daemon] common: Fix small memleak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: Fix small memleak
- Date: Fri, 4 Nov 2011 16:56:25 +0000 (UTC)
commit 7d49f832403ba74697a8e9b9b100642e35bb99a1
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 4 16:55:21 2011 +0000
common: Fix small memleak
plugins/common/test-egg-key-parsing.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/test-egg-key-parsing.c b/plugins/common/test-egg-key-parsing.c
index 46dfd79..d1b8dd8 100644
--- a/plugins/common/test-egg-key-parsing.c
+++ b/plugins/common/test-egg-key-parsing.c
@@ -15,6 +15,7 @@ int main (int argc, char **argv)
gtk_accelerator_parse_with_keycode (KEY, &gdk_accel_key, &gdk_accel_codes, &gdk_mods);
g_message ("gtk_accelerator_parse_full ('%s') returned keyval '%d' keycode[0]: '%d' mods: 0x%x",
KEY, gdk_accel_key, gdk_accel_codes ? gdk_accel_codes[0] : 0, gdk_mods);
+ g_free (gdk_accel_codes);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]