1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

In smjs_get_keymap_object, free the private data JS_SetPrivate fails,

per fonseca's suggestion.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-24 18:07:55 +00:00 committed by Miciah Dashiel Butler Masters
parent f46cdd8f03
commit 309f3d26f3

View File

@ -163,6 +163,8 @@ smjs_get_keymap_object(enum keymap_id keymap_id)
if (JS_FALSE != JS_SetPrivate(smjs_ctx, keymap_object, data))
return keymap_object;
mem_free(data);
return NULL;
}