RE: [gtkmm] how to free a pixbuf



> From: Silviu D Minut [mailto:minutsil cse msu edu] 
> Should RefPtr automatically release the old memory when it is 
> assigned new memory? If so, than that's a bug, because it's 
> not happening. Otherwise, my design is wrong (reading from 
> the disk several images into the same pixbuf), but I don't 
> see a way around it.

Please just think of it as a normal pointer. Setting the RefPtr to 0 will do
the right thing. Please see my earlier reply about the test case. If your
test case does not make sense then I will tell you.

Murray Cumming
www.murrayc.com
murrayc usa net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]