From 88052c9d3dbe22c5ce16ea03dadd00d85ee03b56 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 31 Dec 2015 16:30:14 +0100 Subject: Fix a couple of errors detected by coverity. --- plugingui/painter.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'plugingui/painter.cc') 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; } -- cgit v1.2.3