From 6f5ac2a16181eba483688ee6763136a94c09b1a5 Mon Sep 17 00:00:00 2001 From: taeyoon Date: Mon, 20 Jul 2015 17:07:15 +0900 Subject: [PATCH] Fix prevent for resource leak Change-Id: Ie53c89bd441023e0c54eacb0cc07df2a29f307ce --- adaptors/x11/ecore-x-event-handler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adaptors/x11/ecore-x-event-handler.cpp b/adaptors/x11/ecore-x-event-handler.cpp index 6acd1a38d..e1fd4acb4 100644 --- a/adaptors/x11/ecore-x-event-handler.cpp +++ b/adaptors/x11/ecore-x-event-handler.cpp @@ -385,11 +385,11 @@ struct EventHandler::Impl } free( xiEventMask.mask ); + } - if( deviceInfo != NULL ) - { - XIFreeDeviceInfo( deviceInfo ); - } + if( deviceInfo != NULL ) + { + XIFreeDeviceInfo( deviceInfo ); } } else -- 2.34.1