[gnome-control-center] keyboard: Plug a memory leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Plug a memory leak
- Date: Sat, 18 Aug 2012 17:20:41 +0000 (UTC)
commit 0651abd7fb24278426222d9620591a3d70079693
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Aug 13 21:53:11 2012 +0200
keyboard: Plug a memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=681787
panels/keyboard/keyboard-shortcuts.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index 6c08deb..8b1f471 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -769,8 +769,10 @@ section_selection_changed (GtkTreeSelection *selection, gpointer data)
if (keys == NULL)
{
g_warning ("Can't find section %s in sections hash table!!!", description);
+ g_free (description);
return;
}
+ g_free (description);
gtk_widget_set_sensitive (WID (builder, "remove-toolbutton"), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]