[Zrouter-src] ZRouter.org: push to zconf++ zconf++/interfaces.h

zrouter-src at zrouter.org zrouter-src at zrouter.org
Wed Jan 18 23:08:49 UTC 2012


details:   /rev/26eb43f7cb20
changeset: 42:26eb43f7cb20
user:      "Nicolai Petri <nicolai at petri.dk>"
date:      Thu Jan 19 00:08:25 2012 +0100
description:
Fix memory leak by adding a (virtual) destructor.

diffstat:

 zconf++/interfaces.h |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r e3b0eab5e767 -r 26eb43f7cb20 zconf++/interfaces.h
--- a/zconf++/interfaces.h	Tue Jan 17 20:11:55 2012 +0100
+++ b/zconf++/interfaces.h	Thu Jan 19 00:08:25 2012 +0100
@@ -44,6 +44,7 @@
 			virtual bool operator()(const ZFrame &pFrame )=0;
 								 // call using function
 			virtual bool Call(const ZFrame &pFrame)=0;
+			virtual ~ePacketReceivedFunctor()  { ; } ;
 	};
 
 	class iFrameLayer


More information about the Zrouter-src mailing list