Overview
Comment: | Remove now useless release calls. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e635b9a3fc8c0d81b493b2b3f8b731ce |
User & Date: | js on 2009-01-24 15:33:42 |
Other Links: | manifest | tags |
Context
2009-01-24
| ||
20:28 |
[self alloc] isn't a good idea with the new API. The reason is that a derived class, for example derived from OFArray, would not return an OFArray when + arrayWithItemSize is called. check-in: 7feac9e596 user: js tags: trunk | |
15:33 | Remove now useless release calls. check-in: e635b9a3fc user: js tags: trunk | |
15:24 | Adjust API to introduction of OFAutoreleasePool. check-in: 1496808b81 user: js tags: trunk | |
Changes
Modified src/OFTCPSocket.h from [968f2d5f3e] to [06d6c5c438].
︙ | ︙ | |||
92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /** * Listen on the socket. */ - listen; /** * Accept an incoming connection. */ - (OFTCPSocket*)accept; /** * Enables/disables non-blocking I/O. */ - setBlocking: (BOOL)enable; | > > | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | /** * Listen on the socket. */ - listen; /** * Accept an incoming connection. * \return An OFTCPSocket for the accepted connection, which is NOT * autoreleased! */ - (OFTCPSocket*)accept; /** * Enables/disables non-blocking I/O. */ - setBlocking: (BOOL)enable; |
︙ | ︙ |
Modified tests/OFTCPSocket/OFTCPSocket.m from [f9f0278503] to [ba29c3b0ba].
︙ | ︙ | |||
98 99 100 101 102 103 104 | else { puts("Received INCORRECT string!"); return 1; } #endif [accepted release]; | < < | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | else { puts("Received INCORRECT string!"); return 1; } #endif [accepted release]; } @catch(OFException *e) { printf("EXCEPTION: %s\n", [e cString]); return 1; } return 0; } |