public override void Dispose() { disposeChilderen(); if (com != null) { com.Dispose(); com = null; } base.Dispose(); }
protected virtual void dispose() { if (video != null) { video.disableActiveTexture(this); if (!video.Caps.ExDevice && !video.deviceReseting) { video.DeviceLost -= deviceLost; video.DeviceReset -= deviceReset; } video = null; } if (com != null) { com.Dispose(); com = null; } }