summaryrefslogtreecommitdiff
path: root/src/ticker.c
diff options
context:
space:
mode:
authorRadoslaw Czerski <r.czerski@samsung.com>2016-04-06 17:35:30 +0200
committerRadoslaw Czerski <r.czerski@samsung.com>2016-04-06 17:35:30 +0200
commit6d4a4a531595b5674401bd865cd5a38238f57a0d (patch)
treeabccc096ff55c4afeab5ea35e9093153cda8ebc4 /src/ticker.c
parentd909d0a0d920a0a18c4114df0b683cb68ba8c9cc (diff)
downloadindicator-win-6d4a4a531595b5674401bd865cd5a38238f57a0d.tar.gz
indicator-win-6d4a4a531595b5674401bd865cd5a38238f57a0d.tar.bz2
indicator-win-6d4a4a531595b5674401bd865cd5a38238f57a0d.zip
ticker: seg fault fix.
Change-Id: Ib88d68da506ec276555b0f622dcea4e2a3b315f3 Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
Diffstat (limited to 'src/ticker.c')
-rw-r--r--src/ticker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ticker.c b/src/ticker.c
index 7d0bc83..630f0a5 100644
--- a/src/ticker.c
+++ b/src/ticker.c
@@ -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)