Fix prevent for resource leak 54/44254/1
authortaeyoon <taeyoon0.lee@samsung.com>
Mon, 20 Jul 2015 08:07:15 +0000 (17:07 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Mon, 20 Jul 2015 08:08:16 +0000 (17:08 +0900)
Change-Id: Ie53c89bd441023e0c54eacb0cc07df2a29f307ce

adaptors/x11/ecore-x-event-handler.cpp

index 6acd1a38d11924bb2ba078a442e6ce014b0f6ad4..e1fd4acb42e5edace23f8892909e1c20ad235dd3 100644 (file)
@@ -385,11 +385,11 @@ struct EventHandler::Impl
             }
 
             free( xiEventMask.mask );
+          }
 
-            if( deviceInfo != NULL )
-            {
-              XIFreeDeviceInfo( deviceInfo );
-            }
+          if( deviceInfo != NULL )
+          {
+            XIFreeDeviceInfo( deviceInfo );
           }
         }
         else