mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Memory leak fix
This commit is contained in:
@@ -393,6 +393,9 @@ std::string SystemToolkit::transliterate(std::string input)
|
|||||||
"any-NFKD ; [:Nonspacing Mark:] Remove; [@!#$*%~] Remove; NFKC", UTRANS_FORWARD, status);
|
"any-NFKD ; [:Nonspacing Mark:] Remove; [@!#$*%~] Remove; NFKC", UTRANS_FORWARD, status);
|
||||||
secondTrans->transliterate(ucs);
|
secondTrans->transliterate(ucs);
|
||||||
|
|
||||||
|
delete secondTrans;
|
||||||
|
delete firstTrans;
|
||||||
|
|
||||||
std::ostringstream output;
|
std::ostringstream output;
|
||||||
output << ucs;
|
output << ucs;
|
||||||
return output.str();
|
return output.str();
|
||||||
|
|||||||
Reference in New Issue
Block a user