mirror of https://github.com/status-im/nimqml.git
Merge pull request #47 from status-im/fix/memory-leak-qabstractlistmodel
perf(qabstractlistmodel): Fix memory leak
This commit is contained in:
commit
3769de5030
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue