 +#else
 +	fIconBitmap->SetBits(iconData, size, 0, B_CMAP8);
 +#endif	
-+
-+	delete iconData;
 +}
 +
 +#endif /* FEAT_GUI_DIALOG */

+		return;
+	}
+
+	//app_info appInfo;
+	//status_t status = gui.vimApp->GetAppInfo(&appInfo);
+
+	BPath path;
+	status_t status = find_directory(B_BEOS_SERVERS_DIRECTORY, &path);
+	if(status != B_OK) {

+	// try vector icon first?
+	iconData = (const uint8*)resources.LoadResource(B_VECTOR_ICON_TYPE, name, &size);
+	if(iconData != NULL && BIconUtils::GetVectorIcon(iconData, size, fIconBitmap) == B_OK) {
+		return;
+	}
+#endif
