Overview
Comment: | Fix wrong memset in OFDictionary. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
27a9132794a29898d0e53414f87ba297 |
User & Date: | js on 2009-05-04 16:57:07 |
Other Links: | manifest | tags |
Context
2009-05-04
| ||
17:27 | Add - changeHashSize: to OFDictionary. check-in: 5e77541e4d user: js tags: trunk | |
16:57 | Fix wrong memset in OFDictionary. check-in: 27a9132794 user: js tags: trunk | |
15:05 | Remove useless definitions. check-in: 7665f89ec6 user: js tags: trunk | |
Changes
Modified src/OFDictionary.m from [9fb096432b] to [3e22e7bae1].
︙ | ︙ | |||
45 46 47 48 49 50 51 | * We can't use [super free] on OS X here. Compiler bug? * Anyway, set size to 0 so that [self free] works. */ size = 0; [self free]; @throw e; } | | | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | * We can't use [super free] on OS X here. Compiler bug? * Anyway, set size to 0 so that [self free] works. */ size = 0; [self free]; @throw e; } memset(data, 0, size * sizeof(OFList*)); return self; } - initWithHashSize: (int)hashsize { self = [super init]; |
︙ | ︙ | |||
76 77 78 79 80 81 82 | * We can't use [super free] on OS X here. Compiler bug? * Anyway, set size to 0 so that [self free] works. */ size = 0; [self free]; @throw e; } | | | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | * We can't use [super free] on OS X here. Compiler bug? * Anyway, set size to 0 so that [self free] works. */ size = 0; [self free]; @throw e; } memset(data, 0, size * sizeof(OFList*)); return self; } - free { size_t i; |
︙ | ︙ |