diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-29 22:02:36 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-29 22:02:36 +0200 |
commit | ed8538d8b7de45050d931edd036853944ff04d47 (patch) | |
tree | 597fa4d0df9ffe4fe7bff10cc60daa182fac6542 /gi | |
parent | 31597eeb77be112408a8f78d675422d3d4d9c23e (diff) | |
download | pygobject-ed8538d8b7de45050d931edd036853944ff04d47.tar.gz |
pygi_arg_cache_alloc() never returns NULL
Diffstat (limited to 'gi')
-rw-r--r-- | gi/pygi-basictype.c | 2 | ||||
-rw-r--r-- | gi/pygi-error.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/gi/pygi-basictype.c b/gi/pygi-basictype.c index 05080306..27966bfe 100644 --- a/gi/pygi-basictype.c +++ b/gi/pygi-basictype.c @@ -1062,8 +1062,6 @@ pygi_arg_basic_type_new_from_info (GITypeInfo *type_info, { gboolean res = FALSE; PyGIArgCache *arg_cache = pygi_arg_cache_alloc (); - if (arg_cache == NULL) - return NULL; res = arg_basic_type_setup_from_info (arg_cache, type_info, diff --git a/gi/pygi-error.c b/gi/pygi-error.c index 4feefc4b..18c488a0 100644 --- a/gi/pygi-error.c +++ b/gi/pygi-error.c @@ -328,11 +328,9 @@ pygi_arg_gerror_new_from_info (GITypeInfo *type_info, PyGIDirection direction) { gboolean res = FALSE; - PyGIArgCache *arg_cache = NULL; + PyGIArgCache *arg_cache; arg_cache = pygi_arg_cache_alloc (); - if (arg_cache == NULL) - return NULL; res = pygi_arg_gerror_setup_from_info (arg_cache, type_info, |