X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcontrol%2Ftag_query.c;h=5b495398b0704ac73063abf0c26995bd824bbb3e;hb=88fc2c2874b49d4a3619049480e15b0c23113287;hp=42519cb9c1d25ff7cbc0c8dc22b2689fba07244f;hpb=6ee1e193fd896ab9a4729fde14f009d9ce629815;p=vlc diff --git a/src/control/tag_query.c b/src/control/tag_query.c index 42519cb9c1..5b495398b0 100644 --- a/src/control/tag_query.c +++ b/src/control/tag_query.c @@ -57,6 +57,7 @@ libvlc_tag_query_new( libvlc_instance_t * p_inst, p_q->tag = NULL; p_q->psz_tag_key = NULL; + libvlc_retain( p_inst ); return p_q; } @@ -75,6 +76,7 @@ void libvlc_tag_query_release( libvlc_tag_query_t * p_q ) free( p_q->tag ); free( p_q->psz_tag_key ); + libvlc_release( p_q->p_libvlc_instance ); free( p_q ); }