From 31f64e4f27111ba517411b726c5aa848881c48ac Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 27 May 2011 13:53:57 +0000 Subject: [PATCH] Call NSZoneFree() on pointer allocated with NSAllocateCollectable(), not free(). This is a no-op in GC mode, and will free the memory in non-GC mode. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33148 72102866-910b-0410-8b05-ffd578937521 --- Source/x11/XGServerWindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 5423c79..2e3eabf 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -2292,7 +2292,7 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg) XDestroyRegion (window->region); RELEASE(window->exposedRects); NSMapRemove(windowtags, (void*)(uintptr_t)win); - free(window); + NSZoneFree(0, window); } /*