uref'ing or destroying




Hi.

What is the correct thing to do when you want to destroy an object?
gtk_object_destroy() seems to be the advertised method, but that
doesn't respect the reference count of the object (at least not
in 1.2.2 as far as I can see). Looking at gtk_object_unref() I
see that it will call gtk_object_destroy() when the reference
count hits zero. Is gtk_object_unref() a Better Way then?

Regards.

-- 
Per Erik Stendahl <berrs@update.uu.se>
Condescending Unix Computer User.



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