[valadoc] driver: Fix segfault on dispose



commit 0a8536026499008ad2d679774a19c6001bfe56ea
Author: Florian Brosch <flo brosch gmail com>
Date:   Mon Aug 1 22:05:51 2011 +0200

    driver: Fix segfault on dispose

 src/driver/0.10.x/treebuilder.vala |    4 ++--
 src/driver/0.11.0/treebuilder.vala |    4 ++--
 src/driver/0.11.x/treebuilder.vala |    4 ++--
 src/driver/0.12.x/treebuilder.vala |    4 ++--
 src/driver/0.13.x/treebuilder.vala |    4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/driver/0.10.x/treebuilder.vala b/src/driver/0.10.x/treebuilder.vala
index 9150c7e..aa8977b 100644
--- a/src/driver/0.10.x/treebuilder.vala
+++ b/src/driver/0.10.x/treebuilder.vala
@@ -318,7 +318,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode? node = element.parent_node;
+		weak Vala.CodeNode? node = element.parent_node;
 		if (node == null) {
 			return false;
 		}
@@ -352,7 +352,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode parent = element.parent_node;
+		weak Vala.CodeNode parent = element.parent_node;
 
 		// parameter:
 		if (parent is Vala.FormalParameter) {
diff --git a/src/driver/0.11.0/treebuilder.vala b/src/driver/0.11.0/treebuilder.vala
index c1254e3..425964a 100644
--- a/src/driver/0.11.0/treebuilder.vala
+++ b/src/driver/0.11.0/treebuilder.vala
@@ -318,7 +318,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode? node = element.parent_node;
+		weak Vala.CodeNode? node = element.parent_node;
 		if (node == null) {
 			return false;
 		}
@@ -352,7 +352,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode parent = element.parent_node;
+		weak Vala.CodeNode parent = element.parent_node;
 
 		// parameter:
 		if (parent is Vala.FormalParameter) {
diff --git a/src/driver/0.11.x/treebuilder.vala b/src/driver/0.11.x/treebuilder.vala
index 888c479..fa49292 100644
--- a/src/driver/0.11.x/treebuilder.vala
+++ b/src/driver/0.11.x/treebuilder.vala
@@ -318,7 +318,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode? node = element.parent_node;
+		weak Vala.CodeNode? node = element.parent_node;
 		if (node == null) {
 			return false;
 		}
@@ -352,7 +352,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode parent = element.parent_node;
+		weak Vala.CodeNode parent = element.parent_node;
 
 		// parameter:
 		if (parent is Vala.Parameter) {
diff --git a/src/driver/0.12.x/treebuilder.vala b/src/driver/0.12.x/treebuilder.vala
index 888c479..fa49292 100644
--- a/src/driver/0.12.x/treebuilder.vala
+++ b/src/driver/0.12.x/treebuilder.vala
@@ -318,7 +318,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode? node = element.parent_node;
+		weak Vala.CodeNode? node = element.parent_node;
 		if (node == null) {
 			return false;
 		}
@@ -352,7 +352,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode parent = element.parent_node;
+		weak Vala.CodeNode parent = element.parent_node;
 
 		// parameter:
 		if (parent is Vala.Parameter) {
diff --git a/src/driver/0.13.x/treebuilder.vala b/src/driver/0.13.x/treebuilder.vala
index 888c479..fa49292 100644
--- a/src/driver/0.13.x/treebuilder.vala
+++ b/src/driver/0.13.x/treebuilder.vala
@@ -318,7 +318,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode? node = element.parent_node;
+		weak Vala.CodeNode? node = element.parent_node;
 		if (node == null) {
 			return false;
 		}
@@ -352,7 +352,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
 			return false;
 		}
 
-		Vala.CodeNode parent = element.parent_node;
+		weak Vala.CodeNode parent = element.parent_node;
 
 		// parameter:
 		if (parent is Vala.Parameter) {



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