Greetings.
I've noticed that there is no "SDL_FreeRW(SDL_RWops *)" to
complement “SDL_RWops * SDL_AllocRW(void)”. I recently wrote my own
RWClose which the rwops structure gets told about during creation but
because i used SDL_AllocRW to creat the strucute I can’t free it using
my Free bucause my memory manager is different (ie: SDL owns the
memory). What SDL creats SDL should also Free, so how about adding
"SDL_FreeRW(SDL_RWops *)".
thanks.
-dv
Greetings.
I’ve noticed that there is no “SDL_FreeRW(SDL_RWops *)” to
complement “SDL_RWops * SDL_AllocRW(void)”. I recently wrote my own
RWClose which the rwops structure gets told about during creation but
because i used SDL_AllocRW to creat the strucute I can’t free it using
my Free bucause my memory manager is different (ie: SDL owns the
memory). What SDL creats SDL should also Free, so how about adding
"SDL_FreeRW(SDL_RWops *)".
You are absolutely right. This is in CVS, and will be in SDL 1.1.3
Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
This is one of the many problems caused by the fact that
all of the SDL libs are statically linked against
libcmt.lib, thereby each one carrying around private
copies of malloc, fopen, fread & friends.
But for some reason I can’t convince Sam to use msvcrt.dll…
MarkusOn 30-May-2000 Sam Lantinga wrote:
Greetings.
I've noticed that there is no "SDL_FreeRW(SDL_RWops *)" to
complement “SDL_RWops * SDL_AllocRW(void)”. I recently wrote my own
RWClose which the rwops structure gets told about during creation but
because i used SDL_AllocRW to creat the strucute I can’t free it using
my Free bucause my memory manager is different (ie: SDL owns the
memory). What SDL creats SDL should also Free, so how about adding
"SDL_FreeRW(SDL_RWops *)".
You are absolutely right. This is in CVS, and will be in SDL 1.1.3
Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
---- Markus F.X.J. Oberhumer @ http://oberhumer.tsx.org ----
---- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----
3 WARPS TO URANUS
Apart from the fact that it’s a single platform, Microsoft-loving, sexually
[…]
Please refrain from this kind of language on the list.
Thanks.
-Sam Lantinga, Lead Programmer, Loki Entertainment Software