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:
Clemens Zeidler 2010-10-31 10:00:12 +00:00
parent 1672b85c40
commit 27de01cb63

View File

@ -77,6 +77,7 @@ PluginManager::CreateReader(Reader** reader, int32* streamCount,
}
DestroyReader(*reader);
*reader = NULL;
}
TRACE("PluginManager::CreateReader leave\n");