diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-10-05 23:37:11 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-10-05 23:37:11 +0000 |
| commit | e1d53edca0ee214ae3f8fd6965ce16a3257f2fe1 (patch) | |
| tree | d71a4190e469f97649b8fc3d036218322252c12c /src | |
| parent | 30800d35d439194502a7134f262b8db5caceeeb3 (diff) | |
STR#2005 fix: potential crash in Fl_Text_Display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 0ba0e3630..142dbddde 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -1591,7 +1591,7 @@ void Fl_Text_Display::draw_vline(int visLineNum, int leftClip, int rightClip, stdCharWidth = TMPFONTWIDTH; //mFontStruct->max_bounds.width; if ( stdCharWidth <= 0 ) { Fl::error("Fl_Text_Display::draw_vline(): bad font measurement"); - free((void *)lineStr); + if (lineStr) free((void *)lineStr); return; } |
