initialize mNode variable
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3493 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
410faee318
commit
76af595aa9
@ -116,6 +116,10 @@ BControllable::SetParameterWeb(BParameterWeb *web)
|
||||
LockParameterWeb();
|
||||
old = fWeb;
|
||||
fWeb = web;
|
||||
|
||||
if (fWeb)
|
||||
fWeb->mNode = Node(); // initialize BParameterWeb member variable
|
||||
|
||||
UnlockParameterWeb();
|
||||
if (old != web && web != 0)
|
||||
BPrivate::media::notifications::WebChanged(Node());
|
||||
|
@ -331,7 +331,7 @@ strndup(const char *source, size_t maxBufferSize)
|
||||
|
||||
|
||||
BParameterWeb::BParameterWeb()
|
||||
: mNode(media_node::null)
|
||||
: mNode(media_node::null) // mNode is set in BControllable::SetParameterWeb()
|
||||
{
|
||||
CALLED();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user