[vala] codegen: Fix crash vapi properties with no get body but with set body



commit 227769b7ace9d9a907e55f028fbb0a7d397bcaf9
Author: Nathan Summers <rock gimp org>
Date:   Sat Dec 14 14:29:09 2013 +0100

    codegen: Fix crash vapi properties with no get body but with set body
    
    Fixes bug 657348.

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index bc7411a..090fce3 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -1676,7 +1676,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        cfile.add_function (function);
                }
 
-               if (!prop.is_abstract) {
+               if (!prop.is_abstract && acc.body != null) {
                        bool is_virtual = prop.base_property != null || prop.base_interface_property != null;
 
                        string cname = get_ccode_real_name (acc);


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