Browse Source

- 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 9 years ago
parent
commit
385f0d4ee8
1 changed files with 1 additions and 4 deletions
  1. 1 4
      rtl/inc/strings.pp

+ 1 - 4
rtl/inc/strings.pp

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