Overview
Comment: | Fix double-retain in OFList. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
58d10be52f51aad7c78f979a1d34ee4b |
User & Date: | js on 2011-04-22 18:22:11 |
Other Links: | manifest | tags |
Context
2011-04-22
| ||
20:19 | More style improvements. check-in: e76a7f52c1 user: js tags: trunk | |
18:22 | Fix double-retain in OFList. check-in: 58d10be52f user: js tags: trunk | |
18:00 | More style improvements. check-in: 4814266280 user: js tags: trunk | |
Changes
Modified src/OFList.m from [ca60541ce0] to [80de30a57f].
︙ | ︙ | |||
77 78 79 80 81 82 83 | lastListObject = o; if (firstListObject == NULL) firstListObject = o; count++; mutations++; | < < | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | lastListObject = o; if (firstListObject == NULL) firstListObject = o; count++; mutations++; return o; } - (of_list_object_t*)prependObject: (id)obj { of_list_object_t *o; |
︙ | ︙ | |||
101 102 103 104 105 106 107 | firstListObject = o; if (lastListObject == NULL) lastListObject = o; count++; mutations++; | < < | 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | firstListObject = o; if (lastListObject == NULL) lastListObject = o; count++; mutations++; return o; } - (of_list_object_t*)insertObject: (id)obj beforeListObject: (of_list_object_t*)listobj { of_list_object_t *o; |
︙ | ︙ | |||
127 128 129 130 131 132 133 | if (listobj == firstListObject) firstListObject = o; count++; mutations++; | < < | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | if (listobj == firstListObject) firstListObject = o; count++; mutations++; return o; } - (of_list_object_t*)insertObject: (id)obj afterListObject: (of_list_object_t*)listobj { of_list_object_t *o; |
︙ | ︙ | |||
153 154 155 156 157 158 159 | if (listobj == lastListObject) lastListObject = o; count++; mutations++; | < < | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | if (listobj == lastListObject) lastListObject = o; count++; mutations++; return o; } - (void)removeListObject: (of_list_object_t*)listobj { if (listobj->prev != NULL) listobj->prev->next = listobj->next; |
︙ | ︙ | |||
255 256 257 258 259 260 261 | if (new->firstListObject == NULL) new->firstListObject = o; if (prev != NULL) prev->next = o; new->count++; | < < | 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | if (new->firstListObject == NULL) new->firstListObject = o; if (prev != NULL) prev->next = o; new->count++; prev = o; } } @catch (id e) { [new release]; @throw e; } |
︙ | ︙ |