summaryrefslogtreecommitdiff
path: root/openbox/focus_cycle_popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/focus_cycle_popup.c')
-rw-r--r--openbox/focus_cycle_popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index 08016fe3..00f5f7a1 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -246,7 +246,7 @@ static void popup_target_free(ObFocusCyclePopupTarget *t)
g_free(t->text);
XDestroyWindow(obt_display, t->iconwin);
XDestroyWindow(obt_display, t->textwin);
- g_free(t);
+ g_slice_free(ObFocusCyclePopupTarget, t);
}
static gboolean popup_setup(ObFocusCyclePopup *p, gboolean create_targets,
@@ -313,7 +313,7 @@ static gboolean popup_setup(ObFocusCyclePopup *p, gboolean create_targets,
g_free(text);
} else {
ObFocusCyclePopupTarget *t =
- g_new(ObFocusCyclePopupTarget, 1);
+ g_slice_new(ObFocusCyclePopupTarget);
t->client = ft;
t->text = text;