fix use-after-free issue found by Coverity static analysis (thanks to Jiri Popelka)
1 file changed