[latexila] DocumentsPanel: destroy tab



commit cf118d05741565b1f543bf6430a1aa6ce53683d1
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Mar 4 13:27:28 2017 +0100

    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).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761181

 src/documents_panel.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/documents_panel.vala b/src/documents_panel.vala
index 28dcf83..beea438 100644
--- a/src/documents_panel.vala
+++ b/src/documents_panel.vala
@@ -77,6 +77,7 @@ public class DocumentsPanel : Notebook
 
         int pos = page_num (tab);
         remove_page (pos);
+        tab.destroy ();
     }
 
     public void remove_all_tabs ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]