]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Shut unused destroys_instance warning
authorLuca Bruno <lucabru@src.gnome.org>
Mon, 3 Feb 2014 21:01:26 +0000 (22:01 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Mon, 3 Feb 2014 21:01:26 +0000 (22:01 +0100)
vala/valagirparser.vala

index 294a30681fb0807fbce89af5b3295f7e42ecc76e..9267d7e1ed7c4048bb1f9e8fd5f7d772f76bd06e 100644 (file)
@@ -854,7 +854,7 @@ public class Vala.GirParser : CodeVisitor {
                                        }
                                        if (!(m is CreationMethod)) {
                                                if (metadata.has_argument (ArgumentType.DESTROYS_INSTANCE)) {
-                                                       m.set_attribute ("DestroysInstance", true);
+                                                       m.set_attribute ("DestroysInstance", metadata.get_bool (ArgumentType.DESTROYS_INSTANCE));
                                                }
                                                // merge custom vfunc
                                                if (metadata.has_argument (ArgumentType.VFUNC_NAME)) {