Permalink
Browse files

cosmetics

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30074 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information...
1 parent 2ff4a7d commit c22f535bdd25873bc812809d185287079a871729 alcoheca committed May 12, 2010
Showing with 11 additions and 11 deletions.
  1. +11 −11 xbmc/addons/AddonManager.cpp
@@ -301,17 +301,17 @@ bool CAddonMgr::GetAddon(const CStdString &str, AddonPtr &addon, const TYPE &typ
&& m_addons.find(type) == m_addons.end())
return false;
- cp_status_t status;
- cp_plugin_info_t *cpaddon = NULL;
- cpaddon = m_cpluff->get_plugin_info(m_cp_context, str.c_str(), &status);
- if (status == CP_OK && cpaddon->extensions)
- {
- addon = Factory(cpaddon->extensions);
- m_cpluff->release_info(m_cp_context, cpaddon);
- return true;
- }
- if (cpaddon)
- m_cpluff->release_info(m_cp_context, cpaddon);
+ cp_status_t status;
+ cp_plugin_info_t *cpaddon = NULL;
+ cpaddon = m_cpluff->get_plugin_info(m_cp_context, str.c_str(), &status);
+ if (status == CP_OK && cpaddon->extensions)
+ {
+ addon = Factory(cpaddon->extensions);
+ m_cpluff->release_info(m_cp_context, cpaddon);
+ return true;
+ }
+ if (cpaddon)
+ m_cpluff->release_info(m_cp_context, cpaddon);
if (m_idMap[str])
{

0 comments on commit c22f535

Please sign in to comment.