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
This commit is contained in:
David Chisnall 2011-05-27 13:53:57 +00:00
parent 07638f13fc
commit 7d3d3852c9

View file

@ -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);
}
/*