[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] Memory issue
From: |
Ryan Martindale |
Subject: |
[Devel] Memory issue |
Date: |
Mon, 4 Dec 2000 15:51:40 -0700 |
I am creating my own memory management scheme, and wish to know if I am
doing this correctly. If so, there appears to be a bug in that the free
call doesn't execute appropriately.
I have created my own memory structure having the following:
memory->user = 0;
memory->alloc = ttf_alloc;
memory->realloc = ttf_realloc;
memory->free = ttf_free;
When the library is done, however, I call FT_Done_FreeType - which calls
FT_Done_Memory which performs
free( memory, memory );
which is not my desired effect. Should I recreate a function like
FT_Done_FreeType, or is this a problem?
Ryan Martindale
- [Devel] Memory issue,
Ryan Martindale <=