RE: [gtkmm] how to free a pixbuf
- From: Murray Cumming Comneon com
- To: minutsil cse msu edu
- Cc: gtkmm-list gnome org
- Subject: RE: [gtkmm] how to free a pixbuf
- Date: Wed, 15 Oct 2003 17:50:03 +0200
> 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]