Skip to content

Commit f27c3c1

Browse files
committed
destructing handler app
1 parent a8c6fe1 commit f27c3c1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/cpp/handler/handlerapp.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ HandlerApp::HandlerApp(QObject *parent) :
396396

397397
HandlerApp::~HandlerApp()
398398
{
399+
d->hupConnection.disconnect();
400+
d->quitConnection.disconnect();
399401
delete d;
400402
}
401403

src/cpp/handler/handlermain.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ class HandlerAppMain
4141
delete app;
4242
QCoreApplication::exit(returnCode);
4343
}
44+
45+
~HandlerAppMain()
46+
{
47+
app->~HandlerApp();
48+
delete app;
49+
}
4450
};
4551

4652
extern "C" {

0 commit comments

Comments
 (0)