genlist: fixed dangling _calc_job bug.

Before calling _calc_job directly, the job should be removed.
Because dangling job can be remained.
This commit is contained in:
Tae-Hwan Kim 2013-05-03 02:10:55 +09:00 committed by Daniel Juyung Seo
parent fc807ab7f6
commit ec047e2f92
1 changed files with 2 additions and 0 deletions

View File

@ -2109,6 +2109,8 @@ _elm_genlist_pan_smart_calculate(Eo *obj EINA_UNUSED, void *_pd, va_list *list E
if (psd->wsd->pan_changed)
{
if (psd->wsd->calc_job) ecore_job_del(psd->wsd->calc_job);
psd->wsd->calc_job = NULL;
_calc_job(psd->wsd->obj);
psd->wsd->pan_changed = EINA_FALSE;
}