]> git.sesse.net Git - vlc/commitdiff
Fix incorrect return value and leak
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 13 Feb 2011 11:42:29 +0000 (13:42 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 13 Feb 2011 11:43:09 +0000 (13:43 +0200)
(Beats me why GCC did not warn about this one)

src/config/keys.c

index cc82eba8e8f3e0abfcb8c414490059ba6660c554..05e7bb80abc7770c552383c917d67fb4adc4cd0e 100644 (file)
@@ -450,7 +450,7 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
 
     libvlc->p_hotkeys = as->keys;
     var_AddCallback (libvlc, "key-pressed", vlc_key_to_action, as);
-    return VLC_SUCCESS;
+    return as;
 }
 
 /**