aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIButtonControl.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-03-26 09:43:00 +0000
committerjmarshallnz <jmarshallnz@svn>2010-03-26 09:43:00 +0000
commitadef801ce56c83e4798845db586deb743992e569 (patch)
tree64b814a5c5d67fc0112855ebb80bd19bff25f08c /guilib/GUIButtonControl.cpp
parent6d22e83986fa752e550ff7ff839c0542eafb2860 (diff)
added: Allow immediate deletion of resources via CGUIControl::FreeResources(true);
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28827 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIButtonControl.cpp')
-rw-r--r--guilib/GUIButtonControl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/guilib/GUIButtonControl.cpp b/guilib/GUIButtonControl.cpp
index 8d6f74a72f..a56bd4ab6b 100644
--- a/guilib/GUIButtonControl.cpp
+++ b/guilib/GUIButtonControl.cpp
@@ -171,11 +171,11 @@ void CGUIButtonControl::AllocResources()
m_height = m_imgFocus.GetHeight();
}
-void CGUIButtonControl::FreeResources()
+void CGUIButtonControl::FreeResources(bool immediately)
{
- CGUIControl::FreeResources();
- m_imgFocus.FreeResources();
- m_imgNoFocus.FreeResources();
+ CGUIControl::FreeResources(immediately);
+ m_imgFocus.FreeResources(immediately);
+ m_imgNoFocus.FreeResources(immediately);
}
void CGUIButtonControl::DynamicResourceAlloc(bool bOnOff)