1
0
Fork 0

(svn r20069) -Fix (r20055): Make valgrind happy.

release/1.1
frosch 2010-07-03 21:18:02 +00:00
parent 9b66684b81
commit 9be9302cdb
1 changed files with 1 additions and 3 deletions

View File

@ -221,9 +221,7 @@ void SaveHotkeyGroup(IniGroup *group, T *hotkey_list)
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));
}
}