From: Alan Knowles Date: Sat, 3 Apr 2010 10:10:52 +0000 (+0800) Subject: [CRASH FIX] deleting type when not exists X-Git-Url: http://git.roojs.org/?p=gnome.gobject-introspection;a=commitdiff_plain;h=3873b4118c821df5e894faa04240ed144b9c532d [CRASH FIX] deleting type when not exists This stops crashing happening when type tries to be deleted when it's not there. --- 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):