The source project of this merge request has been removed.
dictionarymanager fix possible memory leak
Fix clang-tidy issue "lib/dictionarymanager.cpp:211:34: warning:
Potential leak of memory pointed to by 'tempDictFile'
[clang-analyzer-cplusplus.NewDeleteLeaks]
1: Calling 'DictionaryManager::makeDictFile' in ~kde/src/kiten/lib/dictionarymanager.cpp:212
2: Assuming the condition is true in ~kde/src/kiten/lib/dictionarymanager.cpp:317
3: Taking true branch in ~kde/src/kiten/lib/dictionarymanager.cpp:317
4: Memory is allocated in ~kde/src/kiten/lib/dictionarymanager.cpp:318
5: Returned allocated memory in ~kde/src/kiten/lib/dictionarymanager.cpp:212
6: Taking true branch in ~kde/src/kiten/lib/dictionarymanager.cpp:215
7: Execution continues on line 211 in ~kde/src/kiten/lib/dictionarymanager.cpp:216
8: Potential leak of memory pointed to by 'tempDictFile' in
~kde/src/kiten/lib/dictionarymanager.cpp:211".
Edited by Raresh Rus