Fix a couple of issues pointed out by https://scan.coverity.com/
This commit is contained in:
1 parent
b666931883
commit
2fcde9f2e1
6 files changed
+23
-42
No files matched your search
@@ -225,8 +225,8 @@ class ZNC_EXPORT_LIB_EXPORT CPyTimer : public CTimer {
|
||||
: CTimer(pModule, uInterval, uCycles, sLabel, sDescription),
|
||||
m_pyObj(pyObj) {
|
||||
Py_INCREF(pyObj);
|
||||
pModule->AddTimer(this);
|
||||
m_pModPython = pModule->GetModPython();
|
||||
pModule->AddTimer(this);
|
||||
}
|
||||
void RunJob() override;
|
||||
PyObject* GetPyObj() { return m_pyObj; }
|
||||
|
||||
Reference in new issue
Block a user