matyalatte / tuw

Tiny GUI wrapper for command-line tools
MIT License
31 stars 2 forks source link

Linux build has a memory leak. #60

Open matyalatte opened 1 week ago

matyalatte commented 1 week ago

In the console window for the GTK build, a temporary buffer (char* markup_str) is not freed. https://github.com/matyalatte/tuw/blob/ffbad1752a4312a970ca3ada555d25cbd867e219/src/string_utils.cpp#L619-L647

Problems may occur when executing commands that output tons of strings on Linux.

matyalatte commented 1 week ago

Fixed at #59