Re: newbie question about g_object unref()



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?

The official documentation[1] does not mention anything about setting the pointer to NULL. Did you read something that says otherwise?

[1] http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref



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