Re: Freeing some GTK resources...



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]