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:
Stefan Schmidt 2014-06-17 11:23:34 +02:00
parent 9cf70c353a
commit 16248748c6
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}