forked from Mirrors/openclonk
Fix a free/delete/g_free mismatch
parent
ef4ea2d931
commit
bbdec40075
|
@ -458,7 +458,8 @@ StdStrBuf C4KeyCodeEx::KeyCode2String(C4KeyCode wCode, bool fHumanReadable, bool
|
|||
if (name) { // is there a string representation of the keysym?
|
||||
// prevent memleak
|
||||
StdStrBuf buf;
|
||||
buf.Take(name);
|
||||
buf.Copy(name);
|
||||
g_free(name);
|
||||
return buf;
|
||||
}
|
||||
#elif defined(USE_SDL_MAINLOOP)
|
||||
|
|
Loading…
Reference in New Issue