ObjFW  Check-in [ffe7645e3a]

Overview
Comment:Fix a few minor bugs found by the Clang Analyzer.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ffe7645e3a64362aacc8dd9397e4f16e21a6e2111f4a0264833ca90f6305f7fa
User & Date: js on 2013-12-15 18:11:08
Other Links: manifest | tags
Context
2013-12-15
18:11
Silence a few of Clang Analyzer's false positives. check-in: d0b98b417d user: js tags: trunk
18:11
Fix a few minor bugs found by the Clang Analyzer. check-in: ffe7645e3a user: js tags: trunk
17:57
OFFile: Code cleanup. check-in: 09d0cd7ac5 user: js tags: trunk
Changes

Modified src/OFApplication.m from [c9284fd43c] to [26f973a124].

118
119
120
121
122
123
124


125
126
127
128
129
130
131
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133







+
+







	   andWideArgumentValues: wargv];
#endif

	delegate = [[cls alloc] init];
	[app setDelegate: delegate];

	[app OF_run];

	[delegate release];

	return 0;
}

@implementation OFApplication
+ (OFApplication*)sharedApplication
{

Modified src/OFMutableString.m from [8476e8b7af] to [fc494f773d].

306
307
308
309
310
311
312
313
314


315
316
317
318
319
320
321
306
307
308
309
310
311
312


313
314
315
316
317
318
319
320
321







-
-
+
+







}

- (void)appendCharacters: (of_unichar_t*)characters
		  length: (size_t)length
{
	void *pool = objc_autoreleasePoolPush();

	return [self appendString: [OFString stringWithCharacters: characters
							   length: length]];
	[self appendString: [OFString stringWithCharacters: characters
						    length: length]];

	objc_autoreleasePoolPop(pool);
}

- (void)appendUTF8String: (const char*)UTF8String
{
	void *pool = objc_autoreleasePoolPush();

Modified src/OFThread.m from [8a5ecd213c] to [ac1a8ee7d6].

230
231
232
233
234
235
236

237
238
239
240
241
242
243
244
245
246
230
231
232
233
234
235
236
237
238
239

240
241
242
243
244
245
246







+


-








	if (thread != nil) {
		thread->_returnValue = [object retain];

		[thread handleTermination];

		thread->_running = OF_THREAD_WAITING_FOR_JOIN;
		objc_autoreleasePoolPop(thread->_pool);
	}

	objc_autoreleasePoolPop(thread->_pool);
	[OFAutoreleasePool OF_handleThreadTermination];

	[thread release];

	of_thread_exit();
}