[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/swf/ASHandlers.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/swf/ASHandlers.cpp |
Date: |
Sat, 11 Nov 2006 22:52:19 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/11/11 22:52:19
Modified files:
. : ChangeLog
server/swf : ASHandlers.cpp
Log message:
* server/swf/ASHandlers.cpp (SWFHandlers::instance): store
the allocated singleton in a std::auto_ptr<>, so to avoid
leaks report (gprocessor w/out args is now leak-free).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1592&r2=1.1593
http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/ASHandlers.cpp?cvsroot=gnash&r1=1.93&r2=1.94
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1592
retrieving revision 1.1593
diff -u -b -r1.1592 -r1.1593
--- ChangeLog 11 Nov 2006 22:44:53 -0000 1.1592
+++ ChangeLog 11 Nov 2006 22:52:19 -0000 1.1593
@@ -1,5 +1,11 @@
2006-11-11 Sandro Santilli <address@hidden>
+ * server/swf/ASHandlers.cpp (SWFHandlers::instance): store
+ the allocated singleton in a std::auto_ptr<>, so to avoid
+ leaks report (gprocessor w/out args is now leak-free).
+
+2006-11-11 Sandro Santilli <address@hidden>
+
* libbase/smart_ptr.h: removed smart_ptr definition, added
function helpers and include for boost::intrusive_ptr
* backend/render_handler_tri.cpp, server/action.cpp, server/action.h,
Index: server/swf/ASHandlers.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/swf/ASHandlers.cpp,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- server/swf/ASHandlers.cpp 11 Nov 2006 22:44:54 -0000 1.93
+++ server/swf/ASHandlers.cpp 11 Nov 2006 22:52:19 -0000 1.94
@@ -16,7 +16,7 @@
//
-/* $Id: ASHandlers.cpp,v 1.93 2006/11/11 22:44:54 strk Exp $ */
+/* $Id: ASHandlers.cpp,v 1.94 2006/11/11 22:52:19 strk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -498,7 +498,8 @@
const SWFHandlers&
SWFHandlers::instance()
{
- static SWFHandlers* _instance = new SWFHandlers();
+ // since it never goes out of scope the auto_ptr should be safe here..
+ static std::auto_ptr<SWFHandlers> _instance ( new SWFHandlers() );
return *_instance;
}