From 844bce0ba017c915cdd8648f2c8e06f1cae615cc Mon Sep 17 00:00:00 2001 From: Semun Lee Date: Wed, 11 Apr 2018 14:48:49 +0900 Subject: [PATCH] Fix resource leak Change-Id: Ib301a9a95377ce11f697e4893c7f2ec76be5d74b Signed-off-by: Semun Lee --- screen_connector_remote_surface/remote_surface_manager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screen_connector_remote_surface/remote_surface_manager.cc b/screen_connector_remote_surface/remote_surface_manager.cc index 442c670..3d6afd5 100644 --- a/screen_connector_remote_surface/remote_surface_manager.cc +++ b/screen_connector_remote_surface/remote_surface_manager.cc @@ -95,6 +95,8 @@ void RemoteSurfaceManager::Init() { LOGE("disconnect wl2_display"); ecore_wl2_display_disconnect(ecore_wl2_connected_display_get(NULL)); ecore_wl2_shutdown(); + if (globals) + eina_iterator_free(globals); return; } -- 2.7.4