private void DisposeAdapter() { if (adapter != null) { try { adapter.Dispose(); } catch (Exception e) { Log.Exception("IFullscreenAdapter failed to dispose", e); } adapter = null; } }
private void DisposeAdapter() { if (adapter != null) { try { adapter.SuggestUnfullscreen -= OnSuggestUnfullscreen; adapter.Dispose(); } catch (Exception e) { Log.Error("IFullscreenAdapter failed to dispose", e); } adapter = null; } }