]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/gtkdoc: Do not add transfer full annotation for delegates
authorLuca Bruno <lethalman88@gmail.com>
Fri, 20 Aug 2010 00:19:29 +0000 (02:19 +0200)
committerLuca Bruno <lethalman88@gmail.com>
Fri, 20 Aug 2010 00:19:29 +0000 (02:19 +0200)
src/doclets/gtkdoc/generator.vala

index 25359e666ac49480ef42144e3bd49574071208b5..15d12b8c96f65ce218e2866c675a56a18556630a 100644 (file)
@@ -604,7 +604,7 @@ public class Gtkdoc.Generator : Api.Visitor {
                        annotations += "allow-none";
                }
 
-               if (param.parameter_type.is_owned) {
+               if (param.parameter_type.is_owned && !(param.parameter_type.data_type is Api.Delegate)) {
                        annotations += "transfer full";
                }