_p_libvlc = NULL;
vlcDataObject->onClose();
- libvlc_destroy(p_libvlc, NULL );
+ libvlc_release(p_libvlc, NULL );
}
return S_OK;
};
public static extern
InstanceHandle Create (int argc, U8String[] argv, NativeException ex);
- [DllImport ("libvlc-control.dll", EntryPoint="libvlc_destroy")]
+ [DllImport ("libvlc-control.dll", EntryPoint="libvlc_release")]
static extern void Destroy (IntPtr ptr, NativeException ex);
protected override bool ReleaseHandle ()
instance = getClassInstance( env, _this );
- libvlc_destroy( (libvlc_instance_t *) instance, NULL);
+ libvlc_release( (libvlc_instance_t *) instance, NULL);
return;
}
vlcInstance_dealloc( PyObject *self )
{
libvlc_exception_t ex;
- libvlc_destroy( LIBVLC_INSTANCE->p_instance, &ex );
+ libvlc_release( LIBVLC_INSTANCE->p_instance, &ex );
PyObject_DEL( self );
}
libvlc_exception_t ex;
libvlc_exception_init( &ex );
- libvlc_destroy( instance, &ex );
+ libvlc_release( instance, &ex );
}
instance = nil;
[audio release];
ASSERT( p_i1 != NULL, "Instance creation failed" );
ASSERT_NOEXCEPTION;
id1 = libvlc_get_vlc_id( p_i1 );
- libvlc_destroy( p_i1, &exception );
+ libvlc_release( p_i1, &exception );
ASSERT_NOEXCEPTION;
/* Create and destroy two instances */
ASSERT_NOEXCEPTION;
fprintf( stderr, "Destroy 1\n" );
- libvlc_destroy( p_i1, &exception );
+ libvlc_release( p_i1, &exception );
ASSERT_NOEXCEPTION;
fprintf( stderr, "Destroy 2\n" );
- libvlc_destroy( p_i2, &exception );
+ libvlc_release( p_i2, &exception );
ASSERT_NOEXCEPTION;
/* Deinit */