# HG changeset patch # User frosch # Date 2010-07-03 21:18:02 # Node ID 2eaf7e9dff0ace71f338668713f5c9ee04fde32c # Parent 9ee0e27df004e5b8901c3b66de44f52fbe54945f (svn r20069) -Fix (r20055): Make valgrind happy. diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -221,9 +221,7 @@ void SaveHotkeyGroup(IniGroup *group, T for (uint i = 0; hotkey_list[i].num != -1; i++) { T *hotkey = &hotkey_list[i]; IniItem *item = group->GetItem(hotkey->name, true); - if (hotkey->keycodes.Length() > 0) { - item->value = strdup(SaveKeycodes(hotkey)); - } + item->SetValue(SaveKeycodes(hotkey)); } }