From 3873b4118c821df5e894faa04240ed144b9c532d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 3 Apr 2010 18:10:52 +0800 Subject: [PATCH] [CRASH FIX] deleting type when not exists This stops crashing happening when type tries to be deleted when it's not there. --- giscanner/glibtransformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py index cfde94b..3e37855 100644 --- a/giscanner/glibtransformer.py +++ b/giscanner/glibtransformer.py @@ -141,7 +141,7 @@ class GLibTransformer(object): # We don't want an alias for this - it's handled specially in # the typelib compiler. - if namespace.name == 'GObject': + if namespace.name == 'GObject' and self._names.aliases['Type']: del self._names.aliases['Type'] def get_get_type_functions(self): -- 2.39.2