Commit 54b0fae5 authored by Alexandre Lision's avatar Alexandre Lision

leak: manually delete c++ pointers

ARC does not take in charge C++ pointers

Issue: #78372
Change-Id: Ia62d70073e541c0979ef556d8adb3686cfec799e
parent ae840f2b
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
AccountModel::instance()->selectionModel()->clearCurrentIndex(); AccountModel::instance()->selectionModel()->clearCurrentIndex();
self.proxyProtocolModel = new ActiveProtocolModel(AccountModel::instance()->protocolModel()); proxyProtocolModel = new ActiveProtocolModel(AccountModel::instance()->protocolModel());
QModelIndex qProtocolIdx = AccountModel::instance()->protocolModel()->selectionModel()->currentIndex(); QModelIndex qProtocolIdx = AccountModel::instance()->protocolModel()->selectionModel()->currentIndex();
[self.protocolList addItemWithTitle: [self.protocolList addItemWithTitle:
AccountModel::instance()->protocolModel()->data(qProtocolIdx, Qt::DisplayRole).toString().toNSString()]; AccountModel::instance()->protocolModel()->data(qProtocolIdx, Qt::DisplayRole).toString().toNSString()];
...@@ -159,6 +159,11 @@ public: ...@@ -159,6 +159,11 @@ public:
[self.ringTabItem setView:self.ringVC.view]; [self.ringTabItem setView:self.ringVC.view];
} }
- (void) dealloc
{
delete proxyProtocolModel;
}
- (IBAction)moveUp:(id)sender { - (IBAction)moveUp:(id)sender {
AccountModel::instance()->moveUp(); AccountModel::instance()->moveUp();
} }
......
...@@ -88,6 +88,11 @@ ...@@ -88,6 +88,11 @@
CategorizedHistoryModel::instance()->addCollection<LocalHistoryCollection>(LoadOptions::FORCE_ENABLED); CategorizedHistoryModel::instance()->addCollection<LocalHistoryCollection>(LoadOptions::FORCE_ENABLED);
} }
- (void) dealloc
{
delete historyProxyModel;
}
- (void)placeHistoryCall:(id)sender - (void)placeHistoryCall:(id)sender
{ {
if([[treeController selectedNodes] count] > 0) { if([[treeController selectedNodes] count] > 0) {
......
...@@ -98,6 +98,11 @@ public: ...@@ -98,6 +98,11 @@ public:
CategorizedContactModel::instance()->setUnreachableHidden(YES); CategorizedContactModel::instance()->setUnreachableHidden(YES);
} }
- (void) dealloc
{
delete contactProxyModel;
}
- (IBAction)callContact:(id)sender - (IBAction)callContact:(id)sender
{ {
if([[treeController selectedNodes] count] > 0) { if([[treeController selectedNodes] count] > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment