Skip to content

Commit

Permalink
fix: objects not being released
Browse files Browse the repository at this point in the history
  • Loading branch information
sha5010 committed Dec 1, 2023
1 parent 4c2039e commit 30c4d70
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/Config.cls
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ End Sub

Private Sub Class_Terminate()
Set cConfig = Nothing
Set Parent = Nothing
End Sub

'/**
Expand Down
9 changes: 9 additions & 0 deletions src/classes/KeymapManager.cls
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,15 @@ Private Sub Class_Initialize()
Set cOnKeyMap = New Dictionary
End Sub

Private Sub Class_Terminate()
Set cKeyMap = Nothing
Set cOnKeyMap = Nothing
Set REDIRECT_TABLE_US = Nothing
Set REDIRECT_TABLE_JIS = Nothing
Set Parent = Nothing
End Sub


'/*
' * Converts Vim-style key sequences to VBA-compatible SendKeys format.
' *
Expand Down
6 changes: 6 additions & 0 deletions src/classes/Modes.cls
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ Private Sub Class_Initialize()
Call Change(MODE_NORMAL)
End Sub

Private Sub Class_Terminate()
Call ClearAppInstances
Set Parent = Nothing
End Sub


'/*
' * Gets the current mode.
' *
Expand Down

0 comments on commit 30c4d70

Please sign in to comment.