Signed-off-by: Jean-Christophe DUBOIS <j...@tribudubois.net>
---
 src/core/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/input.c b/src/core/input.c
index d77bc9f..c9eb0ad 100644
--- a/src/core/input.c
+++ b/src/core/input.c
@@ -1659,11 +1659,11 @@ dfb_input_create_device(int device_index, CoreDFB 
*core_in, void *driver_in)
                                            buf,
                                            dfb_core_world(device->core) );
      if (!shared->reactor) {
+          fusion_skirmish_destroy(&shared->lock);
           funcs->CloseDevice( driver_data );
           SHFREE( pool, shared );
           D_MAGIC_CLEAR( device );
           D_FREE( device );
-          fusion_skirmish_destroy(&shared->lock);
           D_ERROR("DirectFB/Input: fusion_reactor_new() failed! in %s, at %d 
in %s\n",
                   __FUNCTION__, __LINE__, __FILE__);
           goto errorExit;
-- 
1.9.1

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to