projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f58e67
)
fixed - mem leaks in CPeripherals. map entries are not automatically deleted when...
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Sat, 31 Dec 2011 01:04:33 +0000
(
02:04
+0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Sat, 31 Dec 2011 01:04:33 +0000
(
02:04
+0100)
xbmc/peripherals/Peripherals.cpp
patch
|
blob
|
history
diff --git
a/xbmc/peripherals/Peripherals.cpp
b/xbmc/peripherals/Peripherals.cpp
index
3866165
..
3868cc7
100644
(file)
--- a/
xbmc/peripherals/Peripherals.cpp
+++ b/
xbmc/peripherals/Peripherals.cpp
@@
-105,7
+105,12
@@
void CPeripherals::Clear(void)
/* delete mappings */
for (unsigned int iMappingPtr = 0; iMappingPtr < m_mappings.size(); iMappingPtr++)
+ {
+ map<CStdString, CSetting *> settings = m_mappings.at(iMappingPtr).m_settings;
+ for (map<CStdString, CSetting *>::iterator itr = settings.begin(); itr != settings.end(); itr++)
+ delete itr->second;
m_mappings.at(iMappingPtr).m_settings.clear();
+ }
m_mappings.clear();
/* reset class state */