[vala] GAsync: Fix extern async methods



commit 7757cf9ecf6084413f409ba31c31ed73cacd6ec1
Author: Jürg Billeter <j bitron ch>
Date:   Tue Jul 20 14:40:40 2010 +0200

    GAsync: Fix extern async methods

 codegen/valagasyncmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagasyncmodule.vala b/codegen/valagasyncmodule.vala
index 32679f0..ebb142e 100644
--- a/codegen/valagasyncmodule.vala
+++ b/codegen/valagasyncmodule.vala
@@ -343,7 +343,7 @@ public class Vala.GAsyncModule : GSignalModule {
 				header_declarations.add_include ("gio/gio.h");
 			}
 
-			if (!m.is_abstract) {
+			if (!m.is_abstract && m.body != null) {
 				var data = generate_data_struct (m);
 
 				append_function (generate_free_function (m));



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