diff options
Diffstat (limited to 'src/sysExec.cpp')
-rw-r--r-- | src/sysExec.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sysExec.cpp b/src/sysExec.cpp index b6f47d8..005e2cc 100644 --- a/src/sysExec.cpp +++ b/src/sysExec.cpp @@ -176,12 +176,12 @@ int SysExec::getReturnCode() const return return_code_; } -void SysExec::waitAndDestroy(SysExec** s) +void SysExec::waitAndDestroy(SysExec*& s) { - if(!s && !(*s)) + if(!s) return; - (*s)->waitForScript(); - delete(*s); - *s = NULL; + s->waitForScript(); + delete(s); + s = NULL; } |