Set the reader pointer to NULL if no reader is found. BMediaFile crashed in the destructor when I tried to open none media files and no reader was found.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39226 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1672b85c40
commit
27de01cb63
@ -77,6 +77,7 @@ PluginManager::CreateReader(Reader** reader, int32* streamCount,
|
||||
}
|
||||
|
||||
DestroyReader(*reader);
|
||||
*reader = NULL;
|
||||
}
|
||||
|
||||
TRACE("PluginManager::CreateReader leave\n");
|
||||
|
Loading…
Reference in New Issue
Block a user