Nader Morshed,

On Thu, Nov 18, 2010 at 8:21 PM, Nader Morshed <morshed.na...@gmail.com> wrote:
>
> #define G_OBJECT_UNREF_AND_NULLIFY(ptr) { \
>        g_object_unref(ptr); \
>        (ptr) = NULL; \
> }
>

Not a good idea: the object may still hold a reference, and nullifying
the pointer would probably nullify the only way to access the object.

Cheers,
    Leandro
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to