public void Destroy() { if (widget != null) { widget.Destroy(); widget.Dispose(); widget = null; } }
public void Dispose() { if (installedSource != null) { installedSource.SetSubstituteAudioDisplay(null); installedSource = null; } contents.Destroy(); contents.Dispose(); contents = null; }