rage - coverity complaint on locks - fix
This commit is contained in:
parent
40483f4de3
commit
6c616bc6c6
|
@ -310,9 +310,11 @@ _cb_sel_job(void *data)
|
||||||
Evas_Object *win = data;
|
Evas_Object *win = data;
|
||||||
Entry *entry = selentry;
|
Entry *entry = selentry;
|
||||||
if ((!dir_entry) || (!entry)) return;
|
if ((!dir_entry) || (!entry)) return;
|
||||||
|
eina_lock_take(&(entry->lock));
|
||||||
entry->sel = EINA_TRUE;
|
entry->sel = EINA_TRUE;
|
||||||
if (entry->cols > 0) entry->sel_y = seli / entry->cols;
|
if (entry->cols > 0) entry->sel_y = seli / entry->cols;
|
||||||
entry->sel_x = seli - (entry->sel_y * entry->cols);
|
entry->sel_x = seli - (entry->sel_y * entry->cols);
|
||||||
|
eina_lock_release(&(entry->lock));
|
||||||
_sel_go(win, dir_entry, 0, 0);
|
_sel_go(win, dir_entry, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue