We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6a883 commit 62e174eCopy full SHA for 62e174e
src/platforms/macos/macoscontroller.mm
@@ -47,7 +47,9 @@ - (id)initWithObject:(ControllerImpl*)controller;
47
48
MacOSController::~MacOSController() {
49
if (m_connection != nil) {
50
- [static_cast<NSXPCConnection*>(m_connection) release];
+ NSXPCConnection* conn = static_cast<NSXPCConnection*>(m_connection);
51
+ [conn invalidate];
52
+ [conn release];
53
}
54
55
@@ -222,6 +224,9 @@ - (id)initWithObject:(ControllerImpl*)controller;
222
224
QJsonObject jsObj = QJsonDocument::fromJson(jsBlob).object();
223
225
emit initialized(true, jsObj.value("connected").toBool(),
226
QDateTime::fromString(jsObj.value("date").toString()));
227
+
228
+ // The delegate is now owned by the NSXPCConnection
229
+ [delegate release];
230
}];
231
232
0 commit comments