summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkNotebook.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2009-01-11 08:40:19 (GMT)
committerjenglish <jenglish@flightlab.com>2009-01-11 08:40:19 (GMT)
commit847e8e877858c89627b0e81bffdbcdef79c210c3 (patch)
tree741d79488c058b0aa31df9558a73fde798004252 /generic/ttk/ttkNotebook.c
parent00947f1c23c6a123731cb947d6fd377aa168ce37 (diff)
downloadtk-847e8e877858c89627b0e81bffdbcdef79c210c3.zip
tk-847e8e877858c89627b0e81bffdbcdef79c210c3.tar.gz
tk-847e8e877858c89627b0e81bffdbcdef79c210c3.tar.bz2
ttkNotebook.c(NotebookCleanup): Don't call Tk_DeleteOptionTable(),
it's unnecessary and quite possibly harmful [Bug 2496162].
Diffstat (limited to 'generic/ttk/ttkNotebook.c')
-rw-r--r--generic/ttk/ttkNotebook.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c
index fe66308..08fd236 100644
--- a/generic/ttk/ttkNotebook.c
+++ b/generic/ttk/ttkNotebook.c
@@ -1,4 +1,4 @@
-/* $Id: ttkNotebook.c,v 1.16 2008/11/09 23:53:09 jenglish Exp $
+/* $Id: ttkNotebook.c,v 1.17 2009/01/11 08:40:19 jenglish Exp $
* Copyright (c) 2004, Joe English
*/
@@ -1239,9 +1239,6 @@ static void NotebookCleanup(void *recordPtr)
Notebook *nb = recordPtr;
Ttk_DeleteManager(nb->notebook.mgr);
- Tk_DeleteOptionTable(nb->notebook.tabOptionTable);
- Tk_DeleteOptionTable(nb->notebook.paneOptionTable);
-
if (nb->notebook.tabLayout)
Ttk_FreeLayout(nb->notebook.tabLayout);
}