[vala] D-Bus: Fix crash on interfaces without methods in GDBus servers
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix crash on interfaces without methods in GDBus servers
- Date: Sat, 23 Oct 2010 19:55:15 +0000 (UTC)
commit 5857c8d29a54bc68e8f229de91ba78aa98677ce4
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 23 21:51:13 2010 +0200
D-Bus: Fix crash on interfaces without methods in GDBus servers
codegen/valagdbusservermodule.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index 9f8813b..51a6869 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -650,7 +650,9 @@ public class Vala.GDBusServerModule : GDBusClientModule {
ccode.add_expression (ccall);
}
- ccode.close ();
+ if (!first) {
+ ccode.close ();
+ }
var ccall = new CCodeFunctionCall (new CCodeIdentifier ("g_object_unref"));
ccall.add_argument (new CCodeIdentifier ("invocation"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]