eloop: fix memory loop when signal registration fails
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 2 Dec 2012 13:57:43 +0000 (14:57 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 2 Dec 2012 13:57:43 +0000 (14:57 +0100)
commit57f85f91cef0c56498736010170279107b67dd24
tree4426b83ad1100dc88794139084f5f650ef2958ce
parent46898b10902b3ad635a441bbb87ccee103ecc6ca
eloop: fix memory loop when signal registration fails

If the signal-registration fails, we need to destroy it again. Otherwise,
it will keep a reference to the current eloop-object and hence it will
never get freed.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/eloop.c