From 1d57f7b08590255e57dd5931a1993507b4f116c2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 12 Feb 2010 13:44:10 -0500 Subject: using g_slice_new() instead of g_new() part 1 --- openbox/resist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/resist.c') diff --git a/openbox/resist.c b/openbox/resist.c index dc4e2d70..8df7ceed 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -202,7 +202,7 @@ void resist_move_monitors(ObClient *c, gint resist, gint *x, gint *y) else if (cb <= pb && b > pb && b < pb + resist) *y = pb - h + 1; - g_free(area); + g_slice_free(Rect, area); g_free(parea); } @@ -414,7 +414,7 @@ void resist_size_monitors(ObClient *c, gint resist, gint *w, gint *h, break; } - g_free(area); + g_slice_free(Rect, area); g_free(parea); } } -- cgit v1.2.3