Fix memory release problem 71/15771/1 5.99.2 flounder/5.99.2 flounder_5.99.2
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Thu, 26 Jul 2018 07:43:22 +0000 (16:43 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Thu, 26 Jul 2018 08:56:42 +0000 (17:56 +0900)
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 <knimitz@witz-inc.co.jp>
src/window_manager.cpp

index fb35ab0..612b544 100644 (file)
@@ -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()