Преглед на файлове

- 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 години
родител
ревизия
385f0d4ee8
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  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.