From 9aacda7d56ce20f2de9ade4532398a1ecdf77726 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 7 Nov 2013 14:34:01 -0800 Subject: [PATCH] fix for AC lack of QCoreApplication --- assignment-client/src/main.cpp | 2 ++ libraries/shared/src/Node.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/assignment-client/src/main.cpp b/assignment-client/src/main.cpp index 728bcb3c00..10b32f901f 100644 --- a/assignment-client/src/main.cpp +++ b/assignment-client/src/main.cpp @@ -38,6 +38,8 @@ int argc = 0; char** argv = NULL; void childClient() { + QCoreApplication(::argc, ::argv); + // set the logging target to the the CHILD_TARGET_NAME Logging::setTargetName(CHILD_TARGET_NAME); diff --git a/libraries/shared/src/Node.cpp b/libraries/shared/src/Node.cpp index 205d3109a5..dcdc0eacca 100644 --- a/libraries/shared/src/Node.cpp +++ b/libraries/shared/src/Node.cpp @@ -45,6 +45,8 @@ Node::~Node() { delete _localSocket; if (QCoreApplication::instance()) { + // even if we have a QCoreApplication instance we don't get here unless it's been exec'ed + // which is only currently the case for interface if (_linkedData) { _linkedData->deleteLater(); }