[Rivet-svn] r3025 - in trunk: . src/Core

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Mar 18 20:00:38 GMT 2011


Author: lonnblad
Date: Fri Mar 18 20:00:38 2011
New Revision: 3025

Log:
Fixed strange shared pointer assignment that caused seg-fault.

Modified:
   trunk/ChangeLog
   trunk/src/Core/AnalysisHandler.cc

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	Fri Mar 18 10:44:38 2011	(r3024)
+++ trunk/ChangeLog	Fri Mar 18 20:00:38 2011	(r3025)
@@ -1,3 +1,8 @@
+2011-03-18  Leif Lönnblad  <Leif.Lonnblad at thep.lu.se>
+
+	* src/Core/AnalysisHandler.cc (AnalysisHandler::removeAnalysis):
+	Fixed strange shared pointer assignment that caused seg-fault.
+
 2011-03-13  Hendrik Hoeth <hendrik.hoeth at cern.ch>
 
 	* filling of functions works now in a more intuitive way (I hope).

Modified: trunk/src/Core/AnalysisHandler.cc
==============================================================================
--- trunk/src/Core/AnalysisHandler.cc	Fri Mar 18 10:44:38 2011	(r3024)
+++ trunk/src/Core/AnalysisHandler.cc	Fri Mar 18 20:00:38 2011	(r3025)
@@ -205,7 +205,7 @@
     shared_ptr<Analysis> toremove;
     foreach (const AnaHandle a, _analyses) {
       if (a->name() == analysisname) {
-        toremove.reset( a.get() );
+        toremove = a;
         break;
       }
     }


More information about the Rivet-svn mailing list