From: Jakub Bogusz Date: Sun, 23 Oct 2005 11:46:35 +0000 (+0000) Subject: - don't SEGV on input driver init failure X-Git-Tag: auto/th/DirectFB-0_9_24-1~9 X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0446c8800ef7561986c7da645a181e7bbe1134a3;p=packages%2FDirectFB.git - don't SEGV on input driver init failure Changed files: DirectFB-segv.patch -> 1.1 --- diff --git a/DirectFB-segv.patch b/DirectFB-segv.patch new file mode 100644 index 0000000..ec57a16 --- /dev/null +++ b/DirectFB-segv.patch @@ -0,0 +1,12 @@ +Don't try to free shared->reactor before it's allocated. + +--- DirectFB-0.9.23/src/core/input.c.orig 2004-11-23 20:11:43.000000000 +0100 ++++ DirectFB-0.9.23/src/core/input.c 2005-10-23 13:46:03.087199224 +0200 +@@ -732,7 +732,6 @@ + D_MAGIC_SET( device, CoreInputDevice ); + + if (funcs->OpenDevice( device, n, &device_info, &driver_data )) { +- fusion_reactor_free( shared->reactor ); + SHFREE( shared ); + D_MAGIC_CLEAR( device ); + D_FREE( device );