mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Reader: fix QTimer-related memory leaks
This commit is contained in:
committed by
Luis Ángel San Martín
parent
b0082101d3
commit
0da59285cf
@ -161,7 +161,7 @@ void Viewer::createConnections()
|
||||
connect(goToFlow, SIGNAL(goToPage(unsigned int)), this, SLOT(goTo(unsigned int)));
|
||||
|
||||
//current time
|
||||
auto t = new QTimer();
|
||||
auto t = new QTimer(this);
|
||||
connect(t, SIGNAL(timeout()), this, SLOT(updateInformation()));
|
||||
t->start(1000);
|
||||
|
||||
|
Reference in New Issue
Block a user