diff options
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index aa43ac43b..51b968a5f 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -494,7 +494,8 @@ XLineManager::~XLineManager() for(unsigned int i=0; i < sizeof(gekqz); i++) { XLineFactory* xlf = GetFactory(std::string(1, gekqz[i])); - UnregisterFactory(xlf); + if (xlf) + UnregisterFactory(xlf); delete xlf; } |