Home away from home
Joined: 2006/11/20 16:26 Last Login
: Yesterday 17:34
From Norway
Group:
Registered Users
|
@Cyborg
The API allows the users to define memory type of the destination buffer (uncompressed data), and the program is supposed free memory itself, when the program is done with memory.
I guess I can do it internally, I know what API is calling the function, so I can put “if” in there to handle it, but this can cause confusion, and it be easy to forget, to change memory free function.
I think your correct, it be better to deprecate the function, to properly inform the developers that they should not use it. this will cause developers to look up the autodocs.
I think maybe a callback hook, can be good idea, for memory allocation function, so developer have full control over it. some developers don’t like callback hooks, but it already use it for progress updates, and custum password input dialogs.
Edited by LiveForIt on 2022/7/13 13:42:46
|