summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2014-10-05 19:49:19 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2014-10-05 19:49:19 +0000
commit31512b73235a70d778fd42cca124c0f920425065 (patch)
treeecf71cc98a4f113d99c41120a3174f6629ba5498 /test
parentd92be3f5f1b5642cd5375426580f10b0e42ce625 (diff)
Fix a tiny memory leak in test/editor and remove useless style_init().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/editor.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/editor.cxx b/test/editor.cxx
index ba8c8e733..26cd1802a 100644
--- a/test/editor.cxx
+++ b/test/editor.cxx
@@ -5,7 +5,7 @@
//
// This program is described in Chapter 4 of the FLTK Programmer's Guide.
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2014 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -805,8 +805,6 @@ Fl_Window* new_view() {
w->editor->highlight_data(stylebuf, styletable,
sizeof(styletable) / sizeof(styletable[0]),
'A', style_unfinished_cb, 0);
- textbuf->text();
- style_init();
w->end();
w->resizable(w->editor);
w->callback((Fl_Callback *)close_cb, w);