forked from enlightenment/efl
test_progressbar: Verify incoming data object at the beginning
Align with how pd is checked for in other functions here. No need to check before free() as it is done internally anyway. CID: 1216621
This commit is contained in:
parent
9cf70c353a
commit
16248748c6
|
@ -81,9 +81,10 @@ static void
|
|||
_progressbar_destroy_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Progressbar_Data *pd = data;
|
||||
if (!pd) return;
|
||||
|
||||
if (pd->timer) ecore_timer_del(pd->timer);
|
||||
if (pd) free(pd);
|
||||
free(pd);
|
||||
my_progressbar_test_stop(NULL, NULL, NULL);
|
||||
evas_object_del(obj);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue