Skip to content

Commit

Permalink
Declare StateVariableBase destructor as virtual so that the correct d…
Browse files Browse the repository at this point in the history
…estructor is called for derived classes. Coverity defect 701004
  • Loading branch information
stuartm committed May 26, 2012
1 parent f0f37a5 commit 54b1144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythupnp/eventing.h
Expand Up @@ -107,6 +107,7 @@ class UPNP_PUBLIC StateVariableBase
m_sName = sName;
gettimeofday( (&m_ttLastChanged), NULL );
}
virtual ~StateVariableBase() {};

virtual QString ToString() = 0;
};
Expand Down

0 comments on commit 54b1144

Please sign in to comment.