mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:09:27 +02:00
* pas2jni: Fixed double memory freeing when using method pointers in some rare cases.
git-svn-id: trunk@34843 -
This commit is contained in:
parent
8e8521c43e
commit
3fd3ff9527
@ -1775,8 +1775,8 @@ begin
|
||||
Fps.WriteLn('else begin');
|
||||
Fps.WriteLn('mpi:=_TMethodPtrInfo.Create(env, nil, '''', '''');', 1);
|
||||
Fps.WriteLn('mpi.RealMethod:=m;', 1);
|
||||
Fps.WriteLn('InterlockedIncrement(mpi.RefCnt);', 1);
|
||||
Fps.WriteLn('end;');
|
||||
Fps.WriteLn('InterlockedIncrement(mpi.RefCnt);');
|
||||
Fps.WriteLn('finally', -1);
|
||||
Fps.WriteLn('_MethodPointersCS.Leave;');
|
||||
Fps.DecI;
|
||||
|
Loading…
Reference in New Issue
Block a user