From 7ee936736ec753346d8a1811a3c9c014d4be8b41 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 26 Jul 2018 16:43:22 +0900 Subject: [PATCH] Fix memory release problem Do not release json_object after event push. The json_array which was freed is retained to the json-object that is released in afb_event_push. Related page: https://json-c.github.io/json-c/json-c-0.10/doc/html/json__object_8h.html#a04448b1c63173e1bfe49965835732075 Bug-AGL: SPEC-1616 Change-Id: Ic6de6425d7a18b289eb3e9d37d297dcfb3383f21 Signed-off-by: Kazumasa Mitsunari --- src/window_manager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/window_manager.cpp b/src/window_manager.cpp index fb35ab0..612b544 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -1457,7 +1457,6 @@ void WindowManager::emitScreenUpdated(unsigned req_num) { HMI_DEBUG("wm", "afb_event_push failed: %m"); } - json_object_put(jarray); } void WindowManager::setTimer() -- 2.16.6