Fix g_clear_object macro with C++ compilers
In C++ it is invalid to cast a void* to void**. Also add a static check to ensure sizeof(*object_ptr) == sizeof (gpointer). This avoid common mistake of missing '&' in g_clear_object(&obj); https://bugzilla.gnome.org/show_bug.cgi?id=674634
parent
9e4b2805
Please register or sign in to comment