Fixed a stupid copy&paste bug; one version of Translate() did not lock the private
translator handle - and therefore ran into a debugger call. Was triggered by WonderBrush's export function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21538 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7a90948b20
commit
fe1885f283
@ -1536,6 +1536,9 @@ BTranslatorRoster::Translate(translator_id id, BPositionIO* source,
|
||||
if (source == NULL || destination == NULL)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if (!fPrivate->Lock())
|
||||
return B_ERROR;
|
||||
|
||||
BTranslator* translator = fPrivate->FindTranslator(id);
|
||||
if (translator != NULL) {
|
||||
translator->Acquire();
|
||||
|
Loading…
Reference in New Issue
Block a user