rage - coverity complaint on locks - fix

This commit is contained in:
Carsten Haitzler 2015-10-12 10:51:03 +09:00
parent 40483f4de3
commit 6c616bc6c6
1 changed files with 2 additions and 0 deletions

View File

@ -310,9 +310,11 @@ _cb_sel_job(void *data)
Evas_Object *win = data;
Entry *entry = selentry;
if ((!dir_entry) || (!entry)) return;
eina_lock_take(&(entry->lock));
entry->sel = EINA_TRUE;
if (entry->cols > 0) entry->sel_y = seli / entry->cols;
entry->sel_x = seli - (entry->sel_y * entry->cols);
eina_lock_release(&(entry->lock));
_sel_go(win, dir_entry, 0, 0);
}