[vala] codegen: Fix emitting the static destructor of classes



commit 18b59090238bed32d6aeb1acf19c3981fb7b92a0
Author: Luca Bruno <lucabru src gnome org>
Date:   Fri Sep 9 15:35:29 2011 +0200

    codegen: Fix emitting the static destructor of classes

 codegen/valagtypemodule.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 02d8996..99900c6 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]