pieh/xbmc — comment on commit 401475b6d3fde1d4c60ac89c09d8985223fb15fc
File: xbmc/GUIInfoManager.cpp line 4540
By jmarshallnz:

Perhaps I'm missing something, but why not just:

if (it->GetName().Equals(name) && it->GetContext() == context)
return (the number);

return (Register new one);

rather than all the CreateFromDefinition stuff, thus removing the need for Clone() et. al?