Commit 18b554b5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Don't attempt to do anything at exit or at construction this...

macosx/framework: Don't attempt to do anything at exit or at construction this is nasty for a Framework.
parent e776c1f9
......@@ -27,10 +27,6 @@
#import "VLCMediaList.h"
#import "VLCMedia.h"
// FIXME: Hide from public header
extern void * CreateSharedLibraryOnStartup( void ) __attribute__((constructor));
extern void * DestroySharedLibraryAtExit( void ) __attribute__((destructor));
@class VLCAudio;
/**
......
......@@ -49,29 +49,6 @@ void __catch_exception( void * e, const char * function, const char * file, int
}
}
void * CreateSharedLibraryOnStartup( void )
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
/* This library is not loaded for no reason, so let's create
* a VLCLibrary instance. */
[VLCLibrary sharedLibrary];
[pool release];
return NULL;
}
void * DestroySharedLibraryAtExit( void )
{
/* Release the global object that may have been alloc-ed
* in -[VLCLibrary init] */
[sharedLibrary release];
sharedLibrary = nil;
return NULL;
}
@implementation VLCLibrary
+ (VLCLibrary *)sharedLibrary
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment