Commit 7e44b4e1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix incorrect return value and leak

(Beats me why GCC did not warn about this one)
parent 93764acc
...@@ -450,7 +450,7 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc) ...@@ -450,7 +450,7 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
libvlc->p_hotkeys = as->keys; libvlc->p_hotkeys = as->keys;
var_AddCallback (libvlc, "key-pressed", vlc_key_to_action, as); var_AddCallback (libvlc, "key-pressed", vlc_key_to_action, as);
return VLC_SUCCESS; return as;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment