2000-02-05 Mirko Viviani <mirko.viviani@rccr.cremona.it>

* GSWeb/Application.m: in GSWApplicationMain() created an autorelease pool,
	  released GSWApp when it exits from the run loop
	* Doc/GNUstepWeb-HOWTO: updated


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@5947 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Mirko Viviani 2000-02-06 16:32:26 +00:00
parent 2eb714f7f4
commit 930c69ca4e
2 changed files with 24 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2000-02-05 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* GSWeb/Application.m: in GSWApplicationMain() created an autorelease pool,
released GSWApp when it exits from the run loop
* Doc/GNUstepWeb-HOWTO: updated
2000-01-29 Manuel Guesdon <mguesdon@sbuilders.com>
* GSWeb/GSWConfig.h: changed GSWOPTVALUE_FrameworksBaseURL to
@ -24,4 +30,4 @@
* GSWeb.framework/GSWApplication.m: tests added in GSWApplication _argsDictionaryWithUserDefaults:

View file

@ -37,6 +37,11 @@ application unlock
*/
@interface GSWApplication (GSWApplicationPrivate)
- (void)_setPool:(NSAutoreleasePool *)pool;
@end
//====================================================================
GSWApplication* GSWApp=nil;
NSDictionary* globalAppDefaultOptions = nil;
@ -185,6 +190,9 @@ int GSWApplicationMain(NSString* _applicationClassName,
//call NSBundle mainBundle
NSProcessInfo* _processInfo=nil;
NSString* envGNUstepStringEncoding=nil;
NSAutoreleasePool *appAutoreleasePool;
appAutoreleasePool = [NSAutoreleasePool new];
/*
//TODO
DebugInstall("/dvlp/projects/app/Source/app.gswa/shared_debug_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/app_server");
@ -290,9 +298,12 @@ int GSWApplicationMain(NSString* _applicationClassName,
}
NS_ENDHANDLER;
};
DESTROY(appAutoreleasePool);
if (result>=0 && GSWApp)
{
[GSWApp _setPool:[NSAutoreleasePool new]];
[GSWApp run];
DESTROY(GSWApp);
};
return result;
};
@ -370,6 +381,12 @@ int GSWApplicationMain(NSString* _applicationClassName,
};
};
//--------------------------------------------------------------------
- (void)_setPool:(NSAutoreleasePool *)pool
{
globalAutoreleasePool = pool;
}
//--------------------------------------------------------------------
+(id)init
{