Re: [AD] Patch to add an _al_strdup() function (4.3.10) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of th <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Patch to add an _al_strdup() function (4.3.10)
- From: Colin Ward <lists@xxxxxxxxxx>
- Date: Sat, 27 Sep 2008 07:26:25 +0100
- Organization: Code HQ
*BUMP*
Any takers for this patch?
On 25/09/2008, you wrote:
>
> Please find attached some patches to fix a problem my memory tracker
> picked up in 4.3.10.
>
> There were some internal functions in src/readbmp.c, src/readfont.c and
> src/readsmp.c that were calling the standard libc strdup() function to
> duplicate a string, but were then calling the internal _AL_FREE() to
> free it. So when my memory tracker was in use it was getting triggered
> by the calls to _AL_FREE() because the buffer wasn't in its memory
> list. These patches add a new internal _al_strdup() function that uses
> _AL_MALLOC() for the memory allocation.
--
/-------------------------------------------------------------------\
[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2 ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne ]
[Assembly Language: The most fun you can have with your clothes on! ]
\-------------------------------------------------------------------/