Parcourir la source

* fixed finalization of open array out parameters after r31328

git-svn-id: trunk@31623 -
Jonas Maebe il y a 10 ans
Parent
commit
6be050b729
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);