Re: [1/2] winetest: malloc() & co are encapsulated, so encapsulate free() too.
May 15, 2009
4:33 a.m.
Francois Gouget <fgouget(a)free.fr> writes:
It's not very clean to encapsulate malloc() & co with xmalloc(), etc, but to then call free() directly. It means if the implementation of xmalloc() is changed to call HeapAlloc() all the free() have to be changed. So encapsulate free() too.
xmalloc() is clearly a wrapper around malloc(), so there's no need to rename free(). If you want to change the allocation you should rename both to heap_alloc/heap_free or something like that. -- Alexandre Julliard julliard(a)winehq.org
6159
Age (days ago)
6159
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard