Re: newbie question about g_object unref()



On Thu, 2010-11-18 at 22:11 +0000, N James Bridge wrote:
It seems that g_object_unref (ptr) doesn't set ptr to NULL when it frees
the allocated memory. Have I got something wrong here? Do I have to do
it explicitly?

Thanks for all your contributions. I have now found G_IS_OBJECT(), which
is obviously the way to test whether the memory has been released or
not.


-- 
N James Bridge <james xmas demon co uk>



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