]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girwriter: Add scope="notified" to owned delegates
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 11 Jun 2013 19:12:18 +0000 (21:12 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 11 Jun 2013 19:13:01 +0000 (21:13 +0200)
Fixes bug 688012

codegen/valagirwriter.vala

index 6f61af50ddd630107ce53b3ff8c608ae5964993b..073dd8a783222f1c823646c1678372ca3fc7fbbf 100644 (file)
@@ -1215,7 +1215,7 @@ public class Vala.GIRWriter : CodeVisitor {
                                index + 1 : (type.value_owned ? index - 1 : index);
                        buffer.append_printf (" closure=\"%i\"", closure_index);
                        if (type.value_owned) {
-                               buffer.append_printf (" destroy=\"%i\"", closure_index + 1);
+                               buffer.append_printf (" scope=\"notified\" destroy=\"%i\"", closure_index + 1);
                        }
 
                        if (delegate_type.is_called_once) {