mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
driver/volume.cpp: fix memleak - g_volscale re-created without delete
Origin commit data
------------------
Branch: ni/coolstream
Commit: 759203b3c4
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-05-03 (Thu, 03 May 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -105,7 +105,7 @@ void CVolume::Init()
|
|||||||
progress_h = std::max(icon_h, digit_h) - 2*pB;
|
progress_h = std::max(icon_h, digit_h) - 2*pB;
|
||||||
vbar_w += digit_w;
|
vbar_w += digit_w;
|
||||||
}
|
}
|
||||||
|
delete g_volscale;
|
||||||
g_volscale = new CProgressBar(true, progress_w, progress_h, 50, 100, 80, true);
|
g_volscale = new CProgressBar(true, progress_w, progress_h, 50, 100, 80, true);
|
||||||
|
|
||||||
// mute icon
|
// mute icon
|
||||||
|
Reference in New Issue
Block a user