Re: [gtkmm] how to free a pixbuf
- From: Silviu D Minut <minutsil cse msu edu>
- To: Simon Fuhrmann <NightSlayer gmx de>
- Cc: <gtkmm-list gnome org>
- Subject: Re: [gtkmm] how to free a pixbuf
- Date: Wed, 15 Oct 2003 11:58:59 -0400 (EDT)
> 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]