Changeset 383 for trunk/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.cc
- Timestamp:
- Jun 26, 2012, 2:04:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.cc
r377 r383 2266 2266 #endif 2267 2267 2268 #ifndef __OS2__ 2268 2269 // Make sure the plugin data directory exists, creating it if 2269 2270 // necessary. … … 2274 2275 return NPERR_OUT_OF_MEMORY_ERROR; 2275 2276 } 2276 gchar* filename = NULL;2277 2277 2278 2278 // If P_tmpdir does not exist, try /tmp directly … … 2281 2281 (GFileTest) (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))) 2282 2282 { 2283 int file_error = 0;2284 2285 2283 data_directory = g_strconcat ("/tmp", NULL); 2286 2284 if (!data_directory) … … 2330 2328 2331 2329 } 2330 #endif 2332 2331 2333 2332 // Set appletviewer_executable. 2334 filename = g_strdup(ICEDTEA_WEB_JRE);2333 gchar* filename = g_strdup(ICEDTEA_WEB_JRE); 2335 2334 appletviewer_executable = g_strdup_printf ("%s/bin/java", 2336 2335 filename); … … 2351 2350 g_free (filename); 2352 2351 2353 initialized = true;2354 2355 2352 // Initialize threads (needed for mutexes). 2356 2353 if (!g_thread_supported ()) 2357 2354 g_thread_init (NULL); 2355 2356 #ifdef __OS2__ 2357 if (!g_main_context_os2_start_pm_integration (NULL)) 2358 { 2359 PLUGIN_DEBUG ("Failed to integrate with PM"); 2360 np_error = NPERR_GENERIC_ERROR; 2361 goto cleanup_appletviewer_executable; 2362 } 2363 #endif 2358 2364 2359 2365 plugin_instance_mutex = g_mutex_new (); … … 2391 2397 pthread_mutexattr_destroy(&attribute); 2392 2398 2399 initialized = true; 2400 2393 2401 PLUGIN_DEBUG ("NP_Initialize return\n"); 2394 2402 … … 2488 2496 { 2489 2497 PLUGIN_DEBUG ("NP_Shutdown\n"); 2498 2499 #ifdef __OS2__ 2500 g_main_context_os2_stop_pm_integration (NULL); 2501 #endif 2490 2502 2491 2503 // Free mutex.
Note:
See TracChangeset
for help on using the changeset viewer.