diff --git a/examples/contactapp/applicationlogic.nim b/examples/contactapp/applicationlogic.nim index 06e908b..2657a9d 100644 --- a/examples/contactapp/applicationlogic.nim +++ b/examples/contactapp/applicationlogic.nim @@ -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() diff --git a/examples/contactapp/contact.nim b/examples/contactapp/contact.nim index ac2886b..b66eaa6 100644 --- a/examples/contactapp/contact.nim +++ b/examples/contactapp/contact.nim @@ -12,7 +12,7 @@ QtObject: self.QObject.setup proc newContact*(): Contact = - new(result) + new(result, delete) result.name = "" result.setup