 retrieving revision 1.15
 diff -u -r1.15 win32.c
 --- win32.c	23 Apr 2008 15:29:35 -0000	1.15
-+++ win32.c	13 Mar 2013 14:27:56 -0000
++++ win32.c	14 Mar 2013 18:45:11 -0000
 @@ -139,7 +139,7 @@
      if (!_hPrev)
          init_application();

+
+static void uninit_application(void)
+{
+	status_t err;
+	if (--bapp_ref_count)
+		return;
+	be_app->Lock();
+	be_app->Quit();
+	//XXX:HACK
+	be_app->Unlock();
+	//be_app_messenger.SendMessage(B_QUIT_REQUESTED);
+	wait_for_thread(bapp_thid, &err);
+	//FIXME:leak or crash
+	//delete be_app;
+	be_app = NULL;
+}
+
+static int haiku_init(QEditScreen *s, int w, int h)

retrieving revision 1.28
diff -u -r1.28 x11.c
--- x11.c	15 Apr 2008 23:24:04 -0000	1.28
+++ x11.c	14 Mar 2013 18:45:12 -0000
@@ -194,7 +194,7 @@
     QEStyleDef default_style;
     XGCValues gc_val;
