Dispose() public méthode

public Dispose ( ) : void
Résultat void
Exemple #1
0
        public override void Dispose()
        {
            Trace.Call();

            // HACK: this shouldn't be needed but GTK# keeps GC handles
            // these callbacks for some reason and thus leaks :(
            // release ListStore.SetSortFunc() callback
            // gtk_list_store_finalize() -> _gtk_tree_data_list_header_free() -> destroy(user_data);
            _TopicTextView.Dispose();
            _PersonListStore.Dispose();
            // release TreeViewColumn.SetCellDataFunc() callback
            // gtk_tree_view_column_finalize -> GtkTreeViewColumnCellInfo -> info->destroy(info->func_data)
            _IdentityNameColumn.Dispose();

            base.Dispose();
        }
Exemple #2
0
        protected void Dispose(bool disposing)
        {
            Trace.Call(disposing);

            if (disposing)
            {
                if (_LastSeenHighlightQueue != null)
                {
                    _LastSeenHighlightQueue.Dispose();
                }
                _LastSeenHighlightQueue = null;

                // HACK: this shouldn't be needed but GTK# keeps GC handles
                // these callbacks for some reason and thus leaks :(
                _OutputMessageTextView.Dispose();
                CloseItem.Activated -= OnTabMenuCloseActivated;
                _OutputScrolledWindow.Vadjustment.ValueChanged -= OnVadjustmentValueChanged;
            }
        }