From 3d71da088b83c2cc5741dfdc8f619fbf2bba55a2 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 15 Sep 2011 22:31:16 +0000 Subject: Clean up content_factory_register_handler API -- content handlers no longer use the mime type, so don't require it to be interned up front svn path=/trunk/netsurf/; revision=12796 --- cocoa/apple_image.m | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cocoa') diff --git a/cocoa/apple_image.m b/cocoa/apple_image.m index f88e6cc7e..f38970234 100644 --- a/cocoa/apple_image.m +++ b/cocoa/apple_image.m @@ -77,13 +77,7 @@ static nserror register_for_type( NSString *mime ) return NSERROR_OK; #endif - lwc_string *string = NULL; - lwc_error lerror = lwc_intern_string( type, strlen( type ), &string ); - if (lerror != lwc_error_ok) return NSERROR_NOMEM; - - nserror error = content_factory_register_handler( string, &apple_image_content_handler ); - lwc_string_unref( string ); - + nserror error = content_factory_register_handler( type, &apple_image_content_handler ); if (error != NSERROR_OK) return error; return NSERROR_OK; -- cgit v1.2.3