[vala/wip/attributes: 25/31] Drop destroy_function dependency from	Struct.is_disposable
- From: Luca Bruno <lucabru src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [vala/wip/attributes: 25/31] Drop destroy_function dependency from	Struct.is_disposable
 
- Date: Sat, 30 Jul 2011 06:43:39 +0000 (UTC)
 
commit 688a7a2e38fd96f686fb6721b8e5085734bfccbf
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Jul 9 13:17:26 2011 +0200
    Drop destroy_function dependency from Struct.is_disposable
 vala/valastruct.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index c5178b9..443dc04 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -805,7 +805,7 @@ public class Vala.Struct : TypeSymbol {
 	}
 
 	public bool is_disposable () {
-		if (destroy_function != null) {
+		if (get_attribute_string ("CCode", "destroy_function") != null) {
 			return true;
 		}
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]