Explorar o código

* fixed finalization of open array out parameters after r31328

git-svn-id: trunk@31623 -
Jonas Maebe %!s(int64=10) %!d(string=hai) anos
pai
achega
6be050b729
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/ncal.pas

+ 1 - 1
compiler/ncal.pas

@@ -622,7 +622,7 @@ implementation
         if (parasym.varspez=vs_out) and
            is_managed_type(orgparadef) and
            (not is_open_array(resultdef) or
-            is_managed_type(orgparadef)) and
+            is_managed_type(tarraydef(resultdef).elementdef)) and
            not(target_info.system in systems_garbage_collected_managed_types) then
           begin
             paraaddrtype:=cpointerdef.getreusable(orgparadef);