mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
Fix ownership of out function parameters
This fixes Novell bug #498498.
This commit is contained in:
parent
0efb6ed587
commit
7a57660044
1 changed files with 4 additions and 1 deletions
|
@ -281,7 +281,10 @@ namespace GtkSharp.Generation {
|
||||||
result [i] = (gen as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
|
result [i] = (gen as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
|
||||||
return result;
|
return result;
|
||||||
} else if (PassAs != String.Empty && MarshalType != CSType)
|
} else if (PassAs != String.Empty && MarshalType != CSType)
|
||||||
return new string [] { CallName + " = " + gen.FromNative ("native_" + CallName) + ";" };
|
if (gen is HandleBase)
|
||||||
|
return new string [] { CallName + " = " + (gen as HandleBase).FromNative ("native_" + CallName, Owned) + ";" };
|
||||||
|
else
|
||||||
|
return new string [] { CallName + " = " + gen.FromNative ("native_" + CallName) + ";" };
|
||||||
return new string [0];
|
return new string [0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue