[Guessnet-devel] [svn] r172 - in trunk: . src
Enrico Zini
enrico at costa.debian.org
Sat Sep 23 14:42:45 UTC 2006
Author: enrico
Date: Sat Sep 23 14:42:41 2006
New Revision: 172
Modified:
trunk/ (props changed)
trunk/src/ProcessRunner.cc
Log:
r441 at viaza: enrico | 2006-09-23 15:41:43 +0100
Access element BEFORE it's deallocated
Modified: trunk/src/ProcessRunner.cc
==============================================================================
--- trunk/src/ProcessRunner.cc (original)
+++ trunk/src/ProcessRunner.cc Sat Sep 23 14:42:41 2006
@@ -283,12 +283,12 @@
string tag = i->second.tag;
+ // Notify the listener
+ i->second.listener->handleTermination(tag, status);
+
// Remove the process from the proclist
delete i->second.script;
proclist.erase(i);
-
- // Notify the listener
- i->second.listener->handleTermination(tag, status);
}
} catch (std::exception& e) {
fprintf(stderr, "%s\n", e.what());
More information about the Guessnet-devel
mailing list