From 39e90a43f7c6dc19c2c82eb4fd196719e805d19c Mon Sep 17 00:00:00 2001 From: taeyoon Date: Mon, 22 Jun 2015 22:39:48 +0900 Subject: [PATCH] Fix prevent issue - resource leak Change-Id: Ib095425b6fbd5a47777a9011cc7ddd10f6892ec0 --- adaptors/x11/event-handler-x.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/adaptors/x11/event-handler-x.cpp b/adaptors/x11/event-handler-x.cpp index 090cd0f5e..d3f3eaf63 100644 --- a/adaptors/x11/event-handler-x.cpp +++ b/adaptors/x11/event-handler-x.cpp @@ -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 -- 2.34.1