Commit fa0e80f2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Remove the unneeded vlc_object_destroy logger hack, and fix wrapping.


Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <rem@videolan.org>
parent b96154a2
......@@ -359,23 +359,21 @@ static void vlc_object_destroy( vlc_object_t *p_this )
{
vlc_object_internals_t *p_priv = vlc_internals( p_this );
/* FIXME: ugly hack - we cannot use the message queue after
* msg_Destroy(). */
vlc_object_t *logger = p_this;
if( (vlc_object_t *)p_this->p_libvlc == p_this )
logger = NULL;
/* Sanity checks */
if( p_this->i_children )
{
int i;
fprintf( stderr, "ERROR: cannot delete object (%i, %s) with %d children\n",
p_this->i_object_id, p_this->psz_object_name, p_this->i_children );
fprintf( stderr,
"ERROR: cannot delete object (%i, %s) with %d children\n",
p_this->i_object_id, p_this->psz_object_name,
p_this->i_children );
for( i = 0; i < p_this->i_children; i++ )
{
fprintf( stderr, "ERROR: Remaining children object (id:%i, type:%s, name:%s)\n",
fprintf( stderr,
"ERROR: Remaining children object "
"(id:%i, type:%s, name:%s)\n",
p_this->pp_children[i]->i_object_id,
p_this->pp_children[i]->psz_object_type,
p_this->pp_children[i]->psz_object_name );
......@@ -386,11 +384,11 @@ static void vlc_object_destroy( vlc_object_t *p_this )
if( p_this->p_parent )
{
fprintf( stderr, "ERROR: cannot delete object (id:%i, type:%s, name:%s) with a parent (id:%i, type:%s, name:%s)\n",
p_this->i_object_id,
p_this->psz_object_type,
p_this->psz_object_name,
p_this->p_parent->i_object_id,
fprintf( stderr,
"ERROR: cannot delete object (id:%i, type:%s, name:%s) "
"with a parent (id:%i, type:%s, name:%s)\n",
p_this->i_object_id, p_this->psz_object_type,
p_this->psz_object_name, p_this->p_parent->i_object_id,
p_this->p_parent->psz_object_type,
p_this->p_parent->psz_object_name );
fflush(stderr);
......@@ -421,7 +419,7 @@ static void vlc_object_destroy( vlc_object_t *p_this )
{
/* We are leaking this object */
fprintf( stderr,
"ERROR: We are leaking object (id:%i, type:%s, name:%s)\n",
"ERROR: leaking object (id:%i, type:%s, name:%s)\n",
p_global->pp_objects[i]->i_object_id,
p_global->pp_objects[i]->psz_object_type,
p_global->pp_objects[i]->psz_object_name );
......
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