for (int i=0; i<handler_ids.length; i++) { if (handler_ids [i] != 0) { byte [] log_domain = Converter.wcsToMbcs (null, log_domains [i], true); OS.g_log_remove_handler (log_domain, handler_ids [i]); handler_ids [i] = 0;
if (xDisplay != 0) { for (int i=0; i<handler_ids.length; i++) { if (handler_ids [i] != 0) { byte [] log_domain = Converter.wcsToMbcs (null, log_domains [i], true); OS.g_log_remove_handler (log_domain, handler_ids [i]); handler_ids [i] = 0; }
protected void release () {	if (shellHandle != 0) OS.gtk_widget_destroy(shellHandle);	shellHandle = 0;	if (gdkColors != null) {		int /*long*/ colormap = OS.gdk_colormap_get_system();		for (int i = 0; i < gdkColors.length; i++) {			GdkColor color = gdkColors [i];			if (color != null) {				while (colorRefCount [i] > 0) {					OS.gdk_colormap_free_colors(colormap, color, 1);					--colorRefCount [i];				}			}		}	}	gdkColors = null;	colorRefCount = null;	COLOR_BLACK = COLOR_DARK_RED = COLOR_DARK_GREEN = COLOR_DARK_YELLOW = COLOR_DARK_BLUE =	COLOR_DARK_MAGENTA = COLOR_DARK_CYAN = COLOR_GRAY = COLOR_DARK_GRAY = COLOR_RED =	COLOR_GREEN = COLOR_YELLOW = COLOR_BLUE = COLOR_MAGENTA = COLOR_CYAN = COLOR_WHITE = null;			if (emptyTab != 0) OS.pango_tab_array_free(emptyTab);	emptyTab = 0;	/* Free the GTK error and warning handler */	for (int i=0; i<handler_ids.length; i++) {		if (handler_ids [i] != 0) {			byte [] log_domain = Converter.wcsToMbcs (null, log_domains [i], true);			OS.g_log_remove_handler (log_domain, handler_ids [i]);			handler_ids [i] = 0;		}	}	logCallback.dispose ();  logCallback = null;	handler_ids = null;  log_domains = null;	logProc = 0;}