Re: Freeing some GTK resources...
- From: Taura Milana <learfox furry ao net>
- To: gtk-app-devel-list gnome org
- Subject: Re: Freeing some GTK resources...
- Date: Thu, 6 Dec 2001 13:42:10 -0800
On 2001.12.06 13:05 Fabio Rotondo wrote:
Hi,
In my app, I have a GtkStyle alloc'd using:
gtk_widget_get_default_style()
and two Gdk Pixmaps generated using gdk_pixmap_create_from_xpm_d()
How should I free these resources once I don't need them anymore?
Free? I think you mean `unref' right?
I think gtk_widget_get_default_style() and gtk_widget_get_style(wid)
just returns a GtkStyle * but does not increase its refcount.
Only the set and new functions will increases a refcount.
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]