Explorar o código

- do not set the parameter to nil in strings.strdispose, because it's not a var
parameter and the operation is therefore useless

git-svn-id: trunk@32025 -

nickysn %!s(int64=9) %!d(string=hai) anos
pai
achega
385f0d4ee8
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      rtl/inc/strings.pp

+ 1 - 4
rtl/inc/strings.pp

@@ -155,10 +155,7 @@ implementation
 
       begin
          if p<>nil then
-          begin
-            freemem(p);
-            p:=nil;
-          end;
+           freemem(p);
       end;
 
 end.