Permalink
Browse files

fixed: check for NULL before adding the addon in AddonsFromInfoXML

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30413 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information...
1 parent d289db4 commit ed51e377fdd5bfb1f666c93814327daed29b5b7a jmarshallnz committed May 22, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/addons/AddonManager.cpp
@@ -1041,7 +1041,8 @@ bool CAddonMgr::AddonsFromInfoXML(const TiXmlElement *root, VECADDONS &addons)
AddonPtr addon = Factory(info->extensions);
m_cpluff->release_info(context, info);
// FIXME: sanity check here that the addon satisfies our requirements?
- addons.push_back(addon);
+ if (addon.get())
+ addons.push_back(addon);
}
element = element->NextSiblingElement("addon");
}

0 comments on commit ed51e37

Please sign in to comment.