Procházet zdrojové kódy

- 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 před 10 roky
rodič
revize
385f0d4ee8
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  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.