Skip to content

Commit

Permalink
STR#2005 fix: potential crash in Fl_Text_Display.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
fab672000 committed Oct 5, 2008
1 parent 30800d3 commit e1d53ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Text_Display.cxx
Expand Up @@ -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;
}

Expand Down

0 comments on commit e1d53ed

Please sign in to comment.