Fix a leak with g_DefaultGlobalObjectTemplate.