Re: GdkPixmap vadility check



On Sun, 2002-02-17 at 01:38, WDraxinger darkstargames de wrote:
The pixmap itself is of course
ref-/unref-ed. But with the destruction of the last class
instance that refers to the corresponding pixmap
a bit more cleanup work must be done. So I search for
an easy way to obtain the validity of a pixmap.

This is almost certainly a bad way to do things. The solution is almost
certainly to use ref counting properly. If an object is no longer needed
it should automaticly free(unref) everything that it uses (this is done
by overloading the destroy function). There should be no extra cleanup.

Unless you mean that you want to clean up class data when that class is
no longer needed (as apposed to instance data)?
-- 

rob




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