1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 02:12:30 +01:00

Coverity: fix misc resource leak

This commit is contained in:
David Maciejak
2023-03-01 06:33:41 +08:00
committed by Carlos R. Mafra
parent 77df89396c
commit 1215680b6d

View File

@@ -799,6 +799,7 @@ char *GetShortcutString(const char *shortcut)
*k = 0;
mod = wXModifierFromKey(text);
if (mod < 0) {
wfree(buffer);
return wstrdup("bug");
}
lbl = wXModifierToShortcutLabel(mod);