From 31512b73235a70d778fd42cca124c0f920425065 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 5 Oct 2014 19:49:19 +0000 Subject: 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 --- test/editor.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/editor.cxx') 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); -- cgit v1.2.3