summaryrefslogtreecommitdiff
path: root/plugingui/painter.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-31 16:30:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-31 16:30:14 +0100
commit88052c9d3dbe22c5ce16ea03dadd00d85ee03b56 (patch)
tree32e0907ca2cc8f5b11912d6b8b24b021b8418d6a /plugingui/painter.cc
parent33fde43491bd5ac0c357b387e51524b142fdfe75 (diff)
Fix a couple of errors detected by coverity.
Diffstat (limited to 'plugingui/painter.cc')
-rw-r--r--plugingui/painter.cc1
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;
}