> Pouf, g_obj2 is a dead dodo, and next time someone tries to use it, it's an > error.
Another point to consider here: it is true that it is easy for you to detect an error here, but it may be hard for the scripter to determine the root cause of the error: if the continue to use a mix of ref counting and explicit releases, then it may be hard to determine where the dangling reference was created.
