module_Need( location, "packetizer", NULL, 0 ); \
if( location->p_module == NULL ) \
{ \
- vlc_object_destroy( location ); \
+ vlc_object_release( location ); \
msg_Err( p_demux, "cannot find packetizer for " # msg ); \
free( p_sys ); \
return VLC_EGENERIC; \
#define DESTROY_PACKETIZER( location ) \
if( location->p_module ) module_Unneed( location, location->p_module ); \
- vlc_object_destroy( location );
+ vlc_object_release( location );
/**
* @}