Commit db9419fc authored by John (J5) Palmieri's avatar John (J5) Palmieri

[gi-invoke-ng] fix NULL check to check before we access the cache struct

parent 9027e1a2
......@@ -1379,14 +1379,14 @@ _pygi_callable_cache_new (GICallableInfo *callable_info)
PyGICallableCache *cache = _callable_cache_new_from_callable_info (callable_info);
GIInfoType type = g_base_info_get_type ( (GIBaseInfo *)callable_info);
if (cache == NULL)
return NULL;
if (type == GI_INFO_TYPE_VFUNC)
cache->is_vfunc = TRUE;
else if (type == GI_INFO_TYPE_CALLBACK)
cache->is_callback = TRUE;
if (cache == NULL)
return NULL;
if (!_args_cache_generate (callable_info, cache))
goto err;
......
Markdown is supported
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