Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
pygobject
Commits
db9419fc
Commit
db9419fc
authored
Jun 29, 2011
by
John (J5) Palmieri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[gi-invoke-ng] fix NULL check to check before we access the cache struct
parent
9027e1a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gi/pygi-cache.c
gi/pygi-cache.c
+3
-3
No files found.
gi/pygi-cache.c
View file @
db9419fc
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment