Browse Source

* fix memory leaks after ptckvm finalization

Nikolay Nikolov 9 months ago
parent
commit
bb218b2fb1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/ptckvm/src/ptckvm.pas

+ 2 - 0
packages/ptckvm/src/ptckvm.pas

@@ -669,11 +669,13 @@ begin
   Timer := nil;
   CursorBlinkTimer := nil;
   Format := nil;
+  PendingResize := nil;
   FreeAndNil(KeyPressEvents);
   CurrentWidth := 0;
   CurrentHeight := 0;
   CurrentWidthPixels := 0;
   CurrentHeightPixels := 0;
+  FreeAndNil(CurrentFont);
 end;
 
 procedure KVMUpdateScreen;