projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d2ae6d
)
elm_notify: Fix crash when timeout is zero
author
Ryuan Choi
<ryuan.choi@gmail.com>
Mon, 24 Jun 2013 23:11:48 +0000
(08:11 +0900)
committer
Ryuan Choi
<ryuan.choi@gmail.com>
Mon, 24 Jun 2013 23:18:25 +0000
(08:18 +0900)
Because _timer_init() can be called multiple times,
sd->timer should be cleard if we will not add new timer
This fixes https://phab.enlightenment.org/T178
Thanks brian.lovin for the report.
src/lib/elm_notify.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_notify.c
b/src/lib/elm_notify.c
index
f56d93a
..
a43d573
100644
(file)
--- a/
src/lib/elm_notify.c
+++ b/
src/lib/elm_notify.c
@@
-262,6
+262,8
@@
_timer_init(Evas_Object *obj,
if (sd->timer) ecore_timer_del(sd->timer);
if (sd->timeout > 0.0)
sd->timer = ecore_timer_add(sd->timeout, _timer_cb, obj);
+ else
+ sd->timer = NULL;
}
static void