From 0a875245a4fc78ebfd02c201ca178a496cc7fd1c Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 13 Feb 2007 20:01:55 +0000 Subject: [PATCH] Fix memory leak --- vvideorec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvideorec.cc b/vvideorec.cc index fdd81d7..9ce4ca7 100644 --- a/vvideorec.cc +++ b/vvideorec.cc @@ -615,7 +615,7 @@ void VVideoRec::doBar(int action) UCHAR scanrate = player->getIScanRate(); if (scanrate >= 2) { - char* text = new char[5]; + char text[5]; SNPRINTF(text, 5, "%ux", scanrate); drawText(text, barRegion.x + 102, barRegion.y + 12, Colour::LIGHTTEXT); } -- 2.39.5