forked from enlightenment/efl
edje: fix a potentional error of null deref
Summary: this is a patch to fix a potentional error by null dereferencing. Reviewers: jsuya, bu5hm4n, Hermet Reviewed By: jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12086
This commit is contained in:
parent
7dcd14347d
commit
19b603166a
|
@ -1350,7 +1350,7 @@ _edje_seat_emit(Edje *ed, Efl_Input_Device *dev, const char *sig, const char *sr
|
|||
if (dev) seat = efl_input_device_seat_get(dev);
|
||||
if (seat)
|
||||
{
|
||||
sname = strdup(efl_name_get(seat));
|
||||
sname = eina_strdup(efl_name_get(seat));
|
||||
mdata = _edje_signal_data_setup(NULL, NULL, sname, free);
|
||||
}
|
||||
/* keep sending old style signals for legacy compatibility, but provide */
|
||||
|
|
Loading…
Reference in New Issue