driver/volume.cpp: fix memleak - g_volscale re-created without delete

This commit is contained in:
[CST] Focus
2012-05-03 17:23:16 +04:00
parent c2578710fe
commit 759203b3c4

View File

@@ -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