On Tue, Sep 05, 2000 at 05:42:03PM +0200, Ove Kaaven wrote:
> 
> On Tue, 5 Sep 2000, Andreas Mohr wrote:
> 
> > So it creates a palette that later gets replaced by a default palette
> > (or what was it again, that 0xffef ?)
> 
> ffef was the return value from the first SelectPalette, wasn't it?
Hmm, you're right.

> > without getting deallocated ??
> > What is responsible for deallocating ? The program or Wine ?
> 
> Why do you ask here, it's easy to look up. The program is responsible for
> deallocating the palette.
OK, sorry.
In the first place it's the program that is responsible.
But what if it doesn't do that ?
MSDN says:
"When you no longer need the palette, call the DeleteObject function to delete
it."
So it says "call the", NOT "you have to call the".
So Windows might indeed do some kind of garbage collecting here.

How to implement that in Wine, if we need that ?
And it seems we need that, as I remember several cases with non-deleted
palettes...
(I think Netscape 3.x was the most obvious candidate for that)

Andreas Mohr

Reply via email to