From 759203b3c4172ddedd0e446939d701d7e9389b11 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 3 May 2012 17:23:16 +0400 Subject: [PATCH] driver/volume.cpp: fix memleak - g_volscale re-created without delete --- src/driver/volume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/volume.cpp b/src/driver/volume.cpp index f0e6d69c9..07f26ce78 100644 --- a/src/driver/volume.cpp +++ b/src/driver/volume.cpp @@ -105,7 +105,7 @@ void CVolume::Init() progress_h = std::max(icon_h, digit_h) - 2*pB; vbar_w += digit_w; } - + delete g_volscale; g_volscale = new CProgressBar(true, progress_w, progress_h, 50, 100, 80, true); // mute icon