File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ PyTRandomInteger = class(TPyObject)
51
51
function NbBool : Integer; override; // 26
52
52
private
53
53
function PerformArithmeticOp (obj: PPyObject; op: string): PPyObject;
54
+ public
55
+ destructor Destroy; override;
54
56
end ;
55
57
56
58
[TestFixture]
@@ -354,6 +356,12 @@ function PyTRandomInteger.NbPositive: PPyObject; // 8
354
356
end
355
357
end ;
356
358
359
+ destructor PyTRandomInteger.Destroy;
360
+ begin
361
+ FRandomInteger.Free;
362
+ inherited ;
363
+ end ;
364
+
357
365
function PyTRandomInteger.NbAbsolute : PPyObject; // 9
358
366
begin
359
367
with GetPythonEngine do
Original file line number Diff line number Diff line change @@ -176,6 +176,9 @@ procedure TTestWrapDelphi.SetupFixture;
176
176
177
177
procedure TTestWrapDelphi.TearDownFixture ;
178
178
begin
179
+ VarClear(Rtti_Var);
180
+ VarClear(Rtti_Rec);
181
+ VarClear(Rtti_Interface);
179
182
PythonEngine.Free;
180
183
PyDelphiWrapper.Free;
181
184
DelphiModule.Free;
You can’t perform that action at this time.
0 commit comments