diff --git a/src/bin/keymap/Keymap.cpp b/src/bin/keymap/Keymap.cpp index 08fcd2acd5..f863bae7cf 100644 --- a/src/bin/keymap/Keymap.cpp +++ b/src/bin/keymap/Keymap.cpp @@ -575,6 +575,8 @@ Keymap::SaveAsSource(const char* name) _SaveSourceText(file); #endif + fclose(file); + return B_OK; }