Overview
Comment: | (void)initialize -> initialize. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3b62c10b6f1de260006c2866ded377a0 |
User & Date: | js on 2009-02-27 12:31:46 |
Other Links: | manifest | tags |
Context
2009-02-28
| ||
01:49 | Fix a memory leak in OFString that occours when we're out of memory. check-in: 48309788c8 user: js tags: trunk | |
2009-02-27
| ||
12:31 | (void)initialize -> initialize. check-in: 3b62c10b6f user: js tags: trunk | |
11:17 | Add - hash for OFArray and OFString, main implementation in OFMacros. check-in: ffd26c8238 user: js tags: trunk | |
Changes
Modified src/OFAutoreleasePool.m from [94601c49b9] to [69d36d4f2d].
︙ | ︙ | |||
47 48 49 50 51 52 53 | release(iter->object, @selector(release)); [(OFList*)list release]; } #endif @implementation OFAutoreleasePool | | > > | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | release(iter->object, @selector(release)); [(OFList*)list release]; } #endif @implementation OFAutoreleasePool + initialize { #ifndef _WIN32 if (pthread_key_create(&pool_list_key, release_list)) @throw [OFInitializationFailedException newWithClass: self]; #else /* FIXME: Free stuff when thread is terminated! */ if ((pool_list_key = TlsAlloc()) == TLS_OUT_OF_INDEXES) @throw [OFInitializationFailedException newWithClass: self]; #endif return self; } + (void)addToPool: (OFObject*)obj { OFList *pool_list = get_tls(pool_list_key); if (pool_list == nil || [pool_list last] == NULL) { |
︙ | ︙ |
Modified src/OFTCPSocket.m from [a02bc73f70] to [efdb457766].
︙ | ︙ | |||
27 28 29 30 31 32 33 | @implementation OFTCPSocket + tcpSocket { return [[[OFTCPSocket alloc] init] autorelease]; } #ifdef _WIN32 | | > > | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | @implementation OFTCPSocket + tcpSocket { return [[[OFTCPSocket alloc] init] autorelease]; } #ifdef _WIN32 + initialize { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 0), &wsa)) @throw [OFInitializationFailedException newWithClass: self]; return self; } #endif - init { if ((self = [super init])) { sock = INVALID_SOCKET; |
︙ | ︙ |