Merge pull request #47 from status-im/fix/memory-leak-qabstractlistmodel

perf(qabstractlistmodel): Fix memory leak
This commit is contained in:
Alex Jbanca 2023-02-27 18:34:25 +02:00 committed by GitHub
commit 3769de5030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ proc setup*(self: QAbstractListModel) =
self.vptr = dos_qabstractlistmodel_create(addr(self[]), self.metaObject.vptr,
qobjectCallback, qaimCallbacks).DosQObject
self.owner = true
proc delete*(self: QAbstractListModel) =
## Delete the given QAbstractItemModel