diff options
| author | Pedro J. Estébanez | 2018-05-08 21:23:59 +0200 |
|---|---|---|
| committer | Pedro J. Estébanez | 2018-05-08 21:27:33 +0200 |
| commit | 474eda9e30cd86ff93ebf317df2e904b770a8851 (patch) | |
| tree | 90598bd327143fdd2c17321024f17de282544dac /modules | |
| parent | 4a98b1575bd0b890e834c54a2216f839e9540543 (diff) | |
| download | godot-474eda9e30cd86ff93ebf317df2e904b770a8851.tar.gz godot-474eda9e30cd86ff93ebf317df2e904b770a8851.tar.zst godot-474eda9e30cd86ff93ebf317df2e904b770a8851.zip | |
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/gdnative/gdnative.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp index 897588385..e7ebcc73a 100644 --- a/modules/gdnative/gdnative.cpp +++ b/modules/gdnative/gdnative.cpp @@ -469,7 +469,9 @@ Variant GDNative::call_native(StringName p_native_call_type, StringName p_proced godot_variant result = E->get()(procedure_handle, (godot_array *)&p_arguments); - return *(Variant *)&result; + Variant res = *(Variant *)&result; + godot_variant_destroy(&result); + return res; } Error GDNative::get_symbol(StringName p_procedure_name, void *&r_handle, bool p_optional) { |
