diff options
author | Nevcairiel <Nevcairiel@users.sourceforge.net> | 2010-08-14 23:43:27 +0400 |
---|---|---|
committer | Nevcairiel <Nevcairiel@users.sourceforge.net> | 2010-08-14 23:43:27 +0400 |
commit | d538a0a877f98abb846ff91ea2f9e9889de8d4c2 (patch) | |
tree | ee60e8d4064a5fb5ba1a2f993de51be8e6cc5d11 /src | |
parent | 8856a4ad3d8974d6476f5e80b5548875adcae3b8 (diff) |
Fixed a memory leak in IAMMediaContent handling
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2243 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/mplayerc/MainFrm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apps/mplayerc/MainFrm.cpp b/src/apps/mplayerc/MainFrm.cpp index e86752013..04c255107 100644 --- a/src/apps/mplayerc/MainFrm.cpp +++ b/src/apps/mplayerc/MainFrm.cpp @@ -10785,26 +10785,31 @@ void CMainFrame::OpenSetupInfoBar() m_wndInfoBar.SetLine(ResStr(IDS_INFOBAR_TITLE), bstr.m_str);
if(bstr.Length()) fEmpty = false;
}
+ bstr.Empty();
if(SUCCEEDED(pAMMC->get_AuthorName(&bstr)))
{
m_wndInfoBar.SetLine(ResStr(IDS_INFOBAR_AUTHOR), bstr.m_str);
if(bstr.Length()) fEmpty = false;
}
+ bstr.Empty();
if(SUCCEEDED(pAMMC->get_Copyright(&bstr)))
{
m_wndInfoBar.SetLine(ResStr(IDS_INFOBAR_COPYRIGHT), bstr.m_str);
if(bstr.Length()) fEmpty = false;
}
+ bstr.Empty();
if(SUCCEEDED(pAMMC->get_Rating(&bstr)))
{
m_wndInfoBar.SetLine(ResStr(IDS_INFOBAR_RATING), bstr.m_str);
if(bstr.Length()) fEmpty = false;
}
+ bstr.Empty();
if(SUCCEEDED(pAMMC->get_Description(&bstr)))
{
m_wndInfoBar.SetLine(ResStr(IDS_INFOBAR_DESCRIPTION), bstr.m_str);
if(bstr.Length()) fEmpty = false;
}
+ bstr.Empty();
if(!fEmpty)
{
RecalcLayout();
|