Skip to content

Commit

Permalink
Fixed missing call to finalizers in contact example
Browse files Browse the repository at this point in the history
  • Loading branch information
filcuc committed Sep 11, 2022
1 parent a8ae9cd commit 105f5ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/contactapp/applicationlogic.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ QtObject:
self.QObject.setup

proc newApplicationLogic*(app: QApplication): ApplicationLogic =
new(result)
new(result, delete)
result.contactList = newContactList()
result.app = app
result.setup()
Expand Down
2 changes: 1 addition & 1 deletion examples/contactapp/contact.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ QtObject:
self.QObject.setup

proc newContact*(): Contact =
new(result)
new(result, delete)
result.name = ""
result.setup

Expand Down

0 comments on commit 105f5ab

Please sign in to comment.