From: <ma...@us...> - 2013-12-31 20:20:27
|
Revision: 9146 http://sourceforge.net/p/planeshift/code/9146 Author: magodra Date: 2013-12-31 20:20:21 +0000 (Tue, 31 Dec 2013) Log Message: ----------- Fixed CID 1138895 resource leak. Modified Paths: -------------- trunk/src/client/gui/pawscontrolwindow.cpp Modified: trunk/src/client/gui/pawscontrolwindow.cpp =================================================================== --- trunk/src/client/gui/pawscontrolwindow.cpp 2013-12-31 20:16:57 UTC (rev 9145) +++ trunk/src/client/gui/pawscontrolwindow.cpp 2013-12-31 20:20:21 UTC (rev 9146) @@ -422,6 +422,7 @@ if( icon->theirButton==NULL ) { Error2("pawsControlWindow::Register couldn't find window %s!", window->GetName() ); + delete icon; return; } icon->orgRes = icon->theirButton->GetBackground(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |