Permalink
Browse files

Declare StateVariableBase destructor as virtual so that the correct d…

…estructor is called for derived classes. Coverity defect 701004
  • Loading branch information...
1 parent f0f37a5 commit 54b1144c935f19e191c05b68e2776b598226e3f7 @stuartm stuartm committed May 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/libs/libmythupnp/eventing.h
@@ -107,6 +107,7 @@ class UPNP_PUBLIC StateVariableBase
m_sName = sName;
gettimeofday( (&m_ttLastChanged), NULL );
}
+ virtual ~StateVariableBase() {};
virtual QString ToString() = 0;
};

0 comments on commit 54b1144

Please sign in to comment.