Example #1
0
        private void DisposeAdapter()
        {
            if (adapter != null)
            {
                try {
                    adapter.Dispose();
                } catch (Exception e) {
                    Log.Exception("IFullscreenAdapter failed to dispose", e);
                }

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

                adapter = null;
            }
        }