diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-31 16:30:14 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-31 16:30:14 +0100 |
commit | 88052c9d3dbe22c5ce16ea03dadd00d85ee03b56 (patch) | |
tree | 32e0907ca2cc8f5b11912d6b8b24b021b8418d6a /plugingui/painter.cc | |
parent | 33fde43491bd5ac0c357b387e51524b142fdfe75 (diff) |
Fix a couple of errors detected by coverity.
Diffstat (limited to 'plugingui/painter.cc')
-rw-r--r-- | plugingui/painter.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/painter.cc b/plugingui/painter.cc index a1c3f93..01fae5d 100644 --- a/plugingui/painter.cc +++ b/plugingui/painter.cc @@ -193,6 +193,7 @@ void Painter::drawText(int x0, int y0, const Font& font, // If the text offset is outside the buffer; skip it. if((x0 > (int)pixbuf->width) || (y0 > (int)pixbuf->height)) { + delete textbuf; return; } |