From: Semun Lee Date: Wed, 11 Apr 2018 05:48:49 +0000 (+0900) Subject: Fix resource leak X-Git-Tag: accepted/tizen/unified/20180425.062351~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F175612%2F1;p=platform%2Fcore%2Fappfw%2Fscreen-connector.git Fix resource leak Change-Id: Ib301a9a95377ce11f697e4893c7f2ec76be5d74b Signed-off-by: Semun Lee --- 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; }