RE: [gtkmm] how to free a pixbuf



> -----Original Message-----
> From: Silviu D Minut [mailto:minutsil cse msu edu] 
> Sent: Mittwoch, 15. Oktober 2003 16:58
> To: Murray Cumming Comneon com
> Cc: gtkmm-list gnome org
> Subject: RE: [gtkmm] how to free a pixbuf
> 
> > Note that "pixbuf = 0" is the same thing and makes it clearer. It's 
> > just like setting a regular pointer to 0. RefPtr::clear() has been 
> > removed in glibmm 2.4 to avoid confusion.
> 
> That's good to know, thanks! That doesn't release the 
> pixbuf's memory though, does it?

The pixbuf's memory will be released when the last reference is released.
That's not for you to worry about because the RefPtr should worry about it
for you. If there seems to be a memory leak (not impossible - we've seen
them before) then please do make a simple-as-possible compileable test case
and put it in bugzilla.

Murray Cumming
www.murrayc.com
murrayc usa net



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