Browse Source

* fixed win32 testsuite regressions after r49084

git-svn-id: trunk@49175 -
nickysn 4 years ago
parent
commit
81bd473439
1 changed files with 8 additions and 2 deletions
  1. 8 2
      compiler/pdecvar.pas

+ 8 - 2
compiler/pdecvar.pas

@@ -871,8 +871,14 @@ implementation
            end
            end
          else
          else
            begin
            begin
-             readprocdef.free;
-             writeprocdef.free;
+             if readprocdef.proctypeoption=potype_propgetter then
+               readprocdef.maybe_put_in_symtable_stack
+             else
+               readprocdef.free;
+             if writeprocdef.proctypeoption=potype_propsetter then
+               writeprocdef.maybe_put_in_symtable_stack
+             else
+               writeprocdef.free;
            end;
            end;
 
 
          result:=p;
          result:=p;