Clarify pointer ownership semantics

stable-5.1
Nicolas Hake 2010-04-03 12:35:12 +02:00
parent babacbcc5f
commit 73ec7de7b7
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
#include "C4Log.h"
#include <boost/function.hpp>
#include <boost/scoped_ptr.hpp>
#include <C4Game.h>
@ -153,7 +154,7 @@ void C4InteractiveThread::ProcessEvents() // by main thread
case Ev_Function:
{
std::auto_ptr<boost::function<void ()> > func(static_cast<boost::function<void()>*>(pEventData));
boost::scoped_ptr<boost::function<void ()> > func(static_cast<boost::function<void()>*>(pEventData));
(*func)();
}