Fix prevent issue - resource leak 62/42062/1
authortaeyoon <taeyoon0.lee@samsung.com>
Mon, 22 Jun 2015 13:39:48 +0000 (22:39 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Mon, 22 Jun 2015 13:42:07 +0000 (22:42 +0900)
Change-Id: Ib095425b6fbd5a47777a9011cc7ddd10f6892ec0

adaptors/x11/event-handler-x.cpp

index 090cd0f..d3f3eaf 100644 (file)
@@ -292,6 +292,13 @@ struct EventHandler::Impl
             {
               DALI_LOG_INFO( gImfLogging, Debug::General, "Failed to Select Events\n" );
             }
+
+            free( xiEventMask.mask );
+
+            if( deviceInfo != NULL )
+            {
+              XIFreeDeviceInfo( deviceInfo );
+            }
           }
         }
         else