Fix C Generator 37/208937/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 1 Jul 2019 10:14:49 +0000 (19:14 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 1 Jul 2019 10:41:16 +0000 (19:41 +0900)
Before calling delegate callback function, the proxy checks whether the
once flag is 'true' or 'false'.

Change-Id: Ifda4d1861a1b2ffa270a86cdf6b68bd9c12c5dd4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/c_gen/c_proxy_body_gen_cb.h

index 277ad2c..1ea6747 100644 (file)
@@ -158,8 +158,10 @@ $$
         while (iter) {
             handle = (struct ##_s *)iter->data;
             if (handle->seq_id == seq_id && handle->id == id) {
+                bool once = handle->once;
+
                 $$
-                if (handle->once) {
+                if (once) {
                     *list = g_list_remove_link(*list, iter);
                     free(handle);
                     g_list_free(iter);