From: <ral...@us...> - 2014-04-11 17:14:49
|
Revision: 9397 http://sourceforge.net/p/planeshift/code/9397 Author: ralphcampbell Date: 2014-04-11 17:14:44 +0000 (Fri, 11 Apr 2014) Log Message: ----------- Fix CID 1198220 Modified Paths: -------------- trunk/src/common/paws/pawsradio.cpp Modified: trunk/src/common/paws/pawsradio.cpp =================================================================== --- trunk/src/common/paws/pawsradio.cpp 2014-04-11 17:07:23 UTC (rev 9396) +++ trunk/src/common/paws/pawsradio.cpp 2014-04-11 17:14:44 UTC (rev 9397) @@ -424,12 +424,12 @@ if(factory != "pawsRadioButton") //ignore other widgets continue; widgetNodeWidget = PawsManager::GetSingleton().CreateWidget("pawsRadioButton"); - AddChild(widgetNodeWidget); - if(!widgetNodeWidget->Load(widgetNode)) + if(!widgetNodeWidget || !widgetNodeWidget->Load(widgetNode)) { delete widgetNode; return false; } + AddChild(widgetNodeWidget); } return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |