This issue were discovered while investigating a potential leak associated with ctkFDHandler::setEnabled function.
@@ -51,6 +51,8 @@ ctkFDHandler::ctkFDHandler(ctkErrorLogFDMessageHandler* messageHandler,
this->LogLevel = logLevel;
this->TerminalOutput = terminalOutput;
this->SavedFDNumber = 0;
+ this->Pipe[0] = -1;
+ this->Pipe[1] = -1;
this->Enabled = false;
}
@@ -75,8 +75,6 @@ private:
int Pipe[2]; // 0: Read, 1: Write
- bool Initialized;
-
mutable QMutex EnableMutex;
bool Enabled;
};