mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix a couple of issues pointed out by https://scan.coverity.com/
This commit is contained in:
@@ -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