Clear style buffer in destructor.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4633 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-11-04 02:34:33 +00:00
parent 309e21c9fd
commit fa517add2e

View File

@ -394,7 +394,7 @@ CodeEditor::CodeEditor(int X, int Y, int W, int H, const char *L) :
// Destroy a CodeEditor widget...
CodeEditor::~CodeEditor() {
Fl_Text_Buffer *buf = mStyleBuffer;
// style_buffer(0);
mStyleBuffer = 0;
delete buf;
buf = mBuffer;