Fix: trie: fixes regression caused by ref count refactoring

This commit is contained in:
David Vossel 2014-05-09 11:14:48 -04:00
parent 76b693b8f3
commit e0bca21e7a

View File

@ -681,15 +681,14 @@ trie_notify_del(qb_map_t * m, const char *key,
if (f->events == events && f->callback == fn) {
if (cmp_userdata && (f->user_data == user_data)) {
trie_notify_deref(f);
found = QB_TRUE;
} else if (!cmp_userdata) {
trie_notify_deref(f);
found = QB_TRUE;
}
}
if (found) {
trie_notify_deref(f);
}
}
if (found) {
trie_node_release(t, n);