fixed segfault at exits
2 files changed