From 9be9302cdbe5e23ad7565e7d76b9ac2414fb0796 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 3 Jul 2010 21:18:02 +0000 Subject: (svn r20069) -Fix (r20055): Make valgrind happy. --- src/hotkeys.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp index 4bb12503e..eefe96adb 100644 --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -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)); } } -- cgit v1.2.3-54-g00ecf