[vala] codegen: Fix crash on nested try in finally clause
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix crash on nested try in finally clause
- Date: Sat, 16 Oct 2010 11:44:03 +0000 (UTC)
commit 09e5b132717561d9356b10ed3505ed113daf34cf
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 16 13:34:07 2010 +0200
codegen: Fix crash on nested try in finally clause
Fixes bug 632078.
codegen/valagerrormodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagerrormodule.vala b/codegen/valagerrormodule.vala
index ec0d56f..3a4f77c 100644
--- a/codegen/valagerrormodule.vala
+++ b/codegen/valagerrormodule.vala
@@ -371,7 +371,7 @@ public class Vala.GErrorModule : CCodeDelegateModule {
finally_block = (sym.parent_node.parent_node as TryStatement).finally_body;
}
- if (finally_block != null) {
+ if (finally_block != null && finally_block != sym) {
finally_block.emit (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]