diff options
Diffstat (limited to 'src/bind_event.c')
-rw-r--r-- | src/bind_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bind_event.c b/src/bind_event.c index 01887cd..15e2b5d 100644 --- a/src/bind_event.c +++ b/src/bind_event.c @@ -81,7 +81,7 @@ struct bind_event_t *register_event(const char *name) if (ent == NULL) { ERRMSG("not enough memory"); - afb_event_drop(evt->event); + afb_event_unref(evt->event); free(evt); return NULL; } @@ -106,7 +106,7 @@ int remove_event(const char *name) return 0; } dnode = *(struct bind_event_t **)p; - afb_event_drop(dnode->event); + afb_event_unref(dnode->event); tdelete(&key, &bind_event_root, compare); free(dnode); |