Merge from upstream
This commit is contained in:
parent
9758c7ab8a
commit
f861aeb27b
1 changed files with 6 additions and 3 deletions
|
@ -408,9 +408,12 @@ namespace GtkSharp.Generation {
|
|||
|
||||
public override string[] Finish {
|
||||
get {
|
||||
string[] result = new string [2];
|
||||
result [0] = CallName + " = " + FromNative ("native_" + CallName) + ";";
|
||||
result [1] = (Generatable as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
|
||||
string[] result = new string [PassAs == string.Empty ? 1 : 2];
|
||||
int i = 0;
|
||||
if (PassAs != string.Empty) {
|
||||
result [i++] = CallName + " = " + FromNative ("native_" + CallName) + ";";
|
||||
}
|
||||
result [i++] = (Generatable as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";";
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue