Differences From Artifact [36019fb356]:
- File src/OFEmbeddedURIHandler.m — part of check-in [0e6774358c] at 2022-11-17 14:14:01 on branch trunk — Make OFRegisterEmbeddedFile() public (user: js, size: 2859) [annotate] [blame] [check-ins using] [more...]
To Artifact [1976c624c2]:
- File
src/OFEmbeddedURIHandler.m
— part of check-in
[722bb308e8]
at
2022-11-17 14:50:12
on branch trunk
— Fix embedded files with GCC
The load order is different with GCC, resulting in a crash when trying
to send a message, so -[retain] cannot be used in
OFRegisterEmbeddedFile(). (user: js, size: 2850) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
57 58 59 60 61 62 63 | OFEnsure(OFPlainMutexLock(&mutex) == 0); #endif embeddedFiles = realloc(embeddedFiles, sizeof(*embeddedFiles) * (numEmbeddedFiles + 1)); OFEnsure(embeddedFiles != NULL); | | | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | OFEnsure(OFPlainMutexLock(&mutex) == 0); #endif embeddedFiles = realloc(embeddedFiles, sizeof(*embeddedFiles) * (numEmbeddedFiles + 1)); OFEnsure(embeddedFiles != NULL); embeddedFiles[numEmbeddedFiles].path = path; embeddedFiles[numEmbeddedFiles].bytes = bytes; embeddedFiles[numEmbeddedFiles].size = size; numEmbeddedFiles++; #ifdef OF_HAVE_THREADS OFEnsure(OFPlainMutexUnlock(&mutex) == 0); #endif |
︙ | ︙ |