[vlc-devel] commit: input state: don't delete non existing callbacks ( Rafaël Carré )
rafael.carre at gmail.com
Tue Sep 1 09:15:30 CEST 2009
On Tue, 01 Sep 2009 16:34:01 +1000
xxcv <xxcv07 at gmail.com> wrote:
> How do you check if the callback exist or not isn't the job of the
> core to manage callbacks ?
Usually it's the code which added the callbacks which is responsible
for deleting them.
You can't check if some callback is registered, you have to keep
reference of them in your code.
> and why isn't it safe to delete a callback
> when the callback does not exist?
Because it can reveal a bug in your code
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 197 bytes
Desc: not available
More information about the vlc-devel