mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
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:
parent
07638f13fc
commit
7d3d3852c9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue