Re: [gtkmm] how to free a pixbuf



> If you call MyClass::load_image(file) twice, pixbuf_ gets reassigned and
> the old content gets destroyed (if there are no more references to it).
> If this does not work, you should write a test case in bugzilla, like MC
> said.

That's nice and it's certainly the behaviour one would expect. I'm not
sure though if there are other references to pixbuf_. While the pixbuf_ is
being assigned new memory in the second load_image(new_image) call, it
(the pixbuf) is already being displayed in a DrawingArea. Does that count
as a reference? Other than that, there is no other RefPtr pointing to the
same pixbuf_.




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