summaryrefslogtreecommitdiff
path: root/plugingui/painter.cc
diff options
context:
space:
mode:
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;
}