]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix emitting the static destructor of classes
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 9 Sep 2011 13:35:29 +0000 (15:35 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 9 Sep 2011 13:35:29 +0000 (15:35 +0200)
codegen/valagtypemodule.vala

index 02d8996a7ce12287056123c51a8d4bce8ee2997a..99900c6a4ac819b83f1a071226a7eca0c38081fa 100644 (file)
@@ -1538,8 +1538,8 @@ public class Vala.GTypeModule : GErrorModule {
 
                push_function (function);
 
-               if (cl.class_destructor != null) {
-                       cl.class_destructor.body.emit (this);
+               if (cl.static_destructor != null) {
+                       cl.static_destructor.body.emit (this);
                }
 
                pop_context ();