[rfc] Provide separate operator vector new and delete in msvcrt; let valgrind check them

Alexandre Julliard julliard at winehq.org
Tue Dec 15 09:21:38 CST 2009

Dan Kegel <dank at kegel.com> writes:

> However, once in a while, a programmer will call delete when he
> should have called delete[], and a bunch of destructors won't
> get called.  To detect this programming error, let's split
> the vector new and delete functions off from their scalar twins,
> and add values for the heap function flags so we can inform
> valgrind what kind of blocks are being wrangled.
> This means picking two flag bits that Microsoft doesn't use;
> there seem to be enough to go around.

If you mean inventing new flags to HeapAlloc and friends, then no, you
can't do that.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list