Ticket #7001: libs_libmythupnp-uninit-ctor

File libs_libmythupnp-uninit-ctor, 759 bytes (added by Erik Hovland <erik@…>, 15 years ago)

Init in WorkerThread? ctor

Line 
1Make sure that the member variables are initialized in the ctor.
2
3From: Erik Hovland <erik@hovland.org>
4
5
6---
7
8 mythtv/libs/libmythupnp/threadpool.cpp |    2 ++
9 1 files changed, 2 insertions(+), 0 deletions(-)
10
11
12diff --git a/mythtv/libs/libmythupnp/threadpool.cpp b/mythtv/libs/libmythupnp/threadpool.cpp
13index 080fe94..7a7a202 100644
14--- a/mythtv/libs/libmythupnp/threadpool.cpp
15+++ b/mythtv/libs/libmythupnp/threadpool.cpp
16@@ -164,6 +164,8 @@ WorkerThread::WorkerThread( ThreadPool *pThreadPool, const QString &sName )
17     m_pThreadPool    = pThreadPool;
18     m_sName          = sName;
19     m_nIdleTimeoutMS = 60000;
20+    m_timer          = 0;
21+    m_wakeup         = 0;
22 }
23 
24 /////////////////////////////////////////////////////////////////////////////