summaryrefslogtreecommitdiff
path: root/openbox/keyboard.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-02-12 14:36:53 -0500
committerDana Jansens <danakj@orodu.net>2010-02-12 14:37:33 -0500
commitaeac3b735bf4caf7c014c58c1271b2cbe5aedd80 (patch)
treef727f835b505a3676c081698c5a77458b0e9ec1c /openbox/keyboard.c
parente61fd8874a8352fb5fa1c4b2ab84d29679fa7b0c (diff)
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible
Diffstat (limited to 'openbox/keyboard.c')
-rw-r--r--openbox/keyboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c
index 92945ab0..9b74c284 100644
--- a/openbox/keyboard.c
+++ b/openbox/keyboard.c
@@ -79,7 +79,7 @@ static void set_curpos(KeyBindingTree *newpos)
if (curpos != NULL) {
gchar *text = NULL;
GList *it;
- Rect *a;
+ Rect const *a;
for (it = curpos->keylist; it; it = g_list_next(it)) {
gchar *oldtext = text;
@@ -95,7 +95,6 @@ static void set_curpos(KeyBindingTree *newpos)
/* 1 second delay for the popup to show */
popup_delay_show(popup, G_USEC_PER_SEC, text);
g_free(text);
- g_free(a);
} else {
popup_hide(popup);
}