Skip to content
Commit d92736ab authored by Xavier Claessens's avatar Xavier Claessens
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment