]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix throwing errors in constructors
authorJürg Billeter <j@bitron.ch>
Wed, 16 Jun 2010 06:34:26 +0000 (08:34 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 16 Jun 2010 06:34:26 +0000 (08:34 +0200)
codegen/valadovaerrormodule.vala

index 9da609aa43ad9d09d30ad0f48df33f8d1e512817..e40c8781ee05740c12530de9335faf403d7177a7 100644 (file)
@@ -63,7 +63,7 @@ internal class Vala.DovaErrorModule : DovaDelegateModule {
                if (current_method is CreationMethod) {
                        var cl = current_method.parent_symbol as Class;
                        var unref_call = new CCodeFunctionCall (new CCodeIdentifier (cl.get_unref_function ()));
-                       unref_call.add_argument (new CCodeIdentifier ("self"));
+                       unref_call.add_argument (new CCodeIdentifier ("this"));
                        cerror_block.add_statement (new CCodeExpressionStatement (unref_call));
                        cerror_block.add_statement (new CCodeReturnStatement (new CCodeConstant ("NULL")));
                } else if (current_return_type is VoidType) {