edje_cc - fix warning about freeing a const char ptr

yes - the type is const char * for edje runtime (the library) but in
edje_cc we strdup these strings and yes - assign them to a const char *
thus the warning and the need to cast. it's specific co edje_cc only
and so this is correct.
This commit is contained in:
Carsten Haitzler 2016-12-28 19:01:38 +09:00
parent 6f36434584
commit 4b18b472ba
1 changed files with 1 additions and 1 deletions

View File

@ -1419,7 +1419,7 @@ data_write_images(Eet_File *ef, int *image_num)
char *tmp = malloc(size);
snprintf(tmp, size, "%s.png", img->entry);
INF("Vector '%s' used as image, convert to bitmap '%s'", img->entry, tmp);
free(img->entry);
free((void *)img->entry);
img->entry = tmp;
}
}