Commit cf118d05 authored by Sébastien Wilmet's avatar Sébastien Wilmet
Browse files

DocumentsPanel: destroy tab

It improves the situation, the DocumentView and DocumentTab objects are
finalized, but there is one remaining ref on the Document objects (which
are the most important, since they contain the data).
parent 1daf96cb
...@@ -77,6 +77,7 @@ public class DocumentsPanel : Notebook ...@@ -77,6 +77,7 @@ public class DocumentsPanel : Notebook
int pos = page_num (tab); int pos = page_num (tab);
remove_page (pos); remove_page (pos);
tab.destroy ();
} }
public void remove_all_tabs () public void remove_all_tabs ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment