Overview
Comment: | Set variables to nil to prevent double-free. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7a3968b9a3c0f5c6c5ba0471fc5d973f |
User & Date: | js on 2009-10-03 13:29:09 |
Other Links: | manifest | tags |
Context
2009-10-03
| ||
13:33 | Migration of OFXMLParser tests to new testing framework. check-in: 4047440267 user: js tags: trunk | |
13:29 | Set variables to nil to prevent double-free. check-in: 7a3968b9a3 user: js tags: trunk | |
11:58 | Migration of OFThread tests to new testing framework. check-in: 23aa1c1bf5 user: js tags: trunk | |
Changes
Modified src/OFXMLParser.m from [3c38909dd1] to [3727e76ca7].
︙ | ︙ | |||
225 226 227 228 229 230 231 232 233 234 235 236 237 238 | [[cache copy] autorelease]]; [pool release]; [name release]; [prefix release]; [ns release]; state = (buf[i] == '/' ? OF_XMLPARSER_EXPECT_CLOSE : OF_XMLPARSER_OUTSIDE_TAG); } else state = OF_XMLPARSER_IN_TAG; | > | 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | [[cache copy] autorelease]]; [pool release]; [name release]; [prefix release]; [ns release]; name = prefix = ns = nil; state = (buf[i] == '/' ? OF_XMLPARSER_EXPECT_CLOSE : OF_XMLPARSER_OUTSIDE_TAG); } else state = OF_XMLPARSER_IN_TAG; |
︙ | ︙ | |||
283 284 285 286 287 288 289 290 291 292 293 294 295 296 | namespace: ns]; [pool release]; [name release]; [prefix release]; [ns release]; last = i + 1; state = (buf[i] == ' ' ? OF_XMLPARSER_EXPECT_SPACE_OR_CLOSE : OF_XMLPARSER_OUTSIDE_TAG); } break; | > | 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | namespace: ns]; [pool release]; [name release]; [prefix release]; [ns release]; name = prefix = ns = nil; last = i + 1; state = (buf[i] == ' ' ? OF_XMLPARSER_EXPECT_SPACE_OR_CLOSE : OF_XMLPARSER_OUTSIDE_TAG); } break; |
︙ | ︙ | |||
322 323 324 325 326 327 328 | [pool release]; [name release]; [prefix release]; [ns release]; [attrs release]; | | | 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | [pool release]; [name release]; [prefix release]; [ns release]; [attrs release]; name = prefix = ns = nil; attrs = nil; last = i + 1; state = (buf[i] == '/' ? OF_XMLPARSER_EXPECT_CLOSE : OF_XMLPARSER_OUTSIDE_TAG); } else if (buf[i] != ' ') { |
︙ | ︙ | |||
408 409 410 411 412 413 414 | namespace: nil stringValue: attr_val]]; [pool release]; [cache setToCString: ""]; [attr_name release]; [attr_prefix release]; | | < | 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | namespace: nil stringValue: attr_val]]; [pool release]; [cache setToCString: ""]; [attr_name release]; [attr_prefix release]; attr_name = attr_prefix = nil; last = i + 1; state = OF_XMLPARSER_IN_TAG; } break; /* Expecting closing '>' */ |
︙ | ︙ |