From 4f93731cdbecbf43b82aa000c07ec8b40f97dd03 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 12 Feb 2010 13:55:26 -0500 Subject: use g_slice_new() instead of g_new() part 2 --- openbox/focus_cycle_popup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/focus_cycle_popup.c') 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; -- cgit v1.2.3