protected override void OnStopStreaming() { if (aligner != null) { aligner.Dispose(); aligner = null; } if (decimationFilter != null) { decimationFilter.Dispose(); decimationFilter = null; } if (spatialFilter != null) { spatialFilter.Dispose(); spatialFilter = null; } if (temporalFilter != null) { temporalFilter.Dispose(); temporalFilter = null; } }
void OnDisable() { if (_pb != null) { _pb.Dispose(); _pb = null; } }