소스 검색

- 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
       begin
          if p<>nil then
          if p<>nil then
-          begin
-            freemem(p);
-            p:=nil;
-          end;
+           freemem(p);
       end;
       end;
 
 
 end.
 end.