ticker: seg fault fix. 02/65002/1
authorRadoslaw Czerski <r.czerski@samsung.com>
Wed, 6 Apr 2016 15:35:30 +0000 (17:35 +0200)
committerRadoslaw Czerski <r.czerski@samsung.com>
Wed, 6 Apr 2016 15:35:30 +0000 (17:35 +0200)
Change-Id: Ib88d68da506ec276555b0f622dcea4e2a3b315f3
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
src/ticker.c

index 7d0bc83..630f0a5 100644 (file)
@@ -996,6 +996,8 @@ static void _destroy_tickernoti(ticker_info_s *ticker_info)
                if (noti) {
                        _create_tickernoti(noti, ad, ticker_info);
                }
+               else
+                       free(ticker_info);
        }
 }
 
@@ -1105,7 +1107,6 @@ static void _ticker_noti_detailed_changed_cb(void *data, notification_type_e typ
                        return;
                }
        }
-       free(ticker_info);
 }
 
 static Eina_Bool _tickernoti_callback_register_idler_cb(void *data)