aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/cores/playercorefactory/PlayerSelectionRule.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xbmc/cores/playercorefactory/PlayerSelectionRule.cpp b/xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
index 15026a1a20..1d9c439552 100644
--- a/xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
+++ b/xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
@@ -34,7 +34,13 @@ CPlayerSelectionRule::CPlayerSelectionRule(TiXmlElement* pRule)
}
CPlayerSelectionRule::~CPlayerSelectionRule()
-{}
+{
+ for (unsigned int i = 0; i < vecSubRules.size(); i++)
+ {
+ delete vecSubRules[i];
+ }
+ vecSubRules.clear();
+}
void CPlayerSelectionRule::Initialize(TiXmlElement* pRule)
{