Commit cc2d7b41 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

GC: assert pf_destructor

parent db0e6cf9
......@@ -126,6 +126,8 @@ static bool b_daemon = false;
*/
void *vlc_gc_init (gc_object_t *p_gc, void (*pf_destruct) (gc_object_t *))
{
/* There is no point in using the GC if there is destructor... */
assert (pf_destruct);
p_gc->pf_destructor = pf_destruct;
p_gc->refs = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment