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
This commit is contained in:
parent
d92be3f5f1
commit
31512b7323
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user