[CRASH FIX] deleting type when not exists
[gnome.gobject-introspection] / giscanner / glibtransformer.py
index cfde94b..3e37855 100644 (file)
@@ -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):