]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Drop destroy_function dependency from Struct.is_disposable
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 9 Jul 2011 11:17:26 +0000 (13:17 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 1 Aug 2011 16:17:06 +0000 (18:17 +0200)
vala/valastruct.vala

index c5178b97f92ddc69d20b283cafc623db7e100518..443dc040f0ad05dc925b209c433197e90cfeea1d 100644 (file)
@@ -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;
                }