Index: src/OFEmbeddedFileURLHandler.m ================================================================== --- src/OFEmbeddedFileURLHandler.m +++ src/OFEmbeddedFileURLHandler.m @@ -83,16 +83,18 @@ if (URL.host != nil || URL.port != nil || URL.user != nil || URL.password != nil || URL.query != nil || URL.fragment != nil) @throw [OFInvalidArgumentException exception]; - if ((path = URL.path.UTF8String) == NULL) + if ((path = URL.path.UTF8String) == NULL) { @throw [OFInvalidArgumentException exception]; + } #ifdef OF_HAVE_THREADS OFEnsure(OFPlainMutexLock(&mutex) == 0); @try { +#endif for (size_t i = 0; i < numEmbeddedFiles; i++) { if (strcmp(embeddedFiles[i].name, path) != 0) continue; return [OFMemoryStream @@ -99,11 +101,10 @@ streamWithMemoryAddress: (void *) embeddedFiles[i].bytes size: embeddedFiles[i].size writable: false]; } -#endif #ifdef OF_HAVE_THREADS } @finally { OFEnsure(OFPlainMutexUnlock(&mutex) == 0); } #endif