forked from enlightenment/efl
notes - cedric... i think i may have found a problem here...
SVN revision: 34443
This commit is contained in:
parent
21bfa5b0d6
commit
0688234e2f
|
@ -153,15 +153,20 @@ _evas_common_rgba_image_surface_alloc(Image_Entry *ie, int w, int h)
|
||||||
else
|
else
|
||||||
siz = w * h * sizeof(DATA32);
|
siz = w * h * sizeof(DATA32);
|
||||||
|
|
||||||
if (im->image.no_free)
|
/* FIXME: this is wrong. we seem to realloc data here that ismaked "no_free"
|
||||||
im->image.data = malloc(siz);
|
* whihc is wrong, but when we fix it, we break all sorts of stuff
|
||||||
else
|
* whihc used to work. i suspect the cache changes in evas */
|
||||||
|
#if 1
|
||||||
|
im->image.data = realloc(im->image.data, siz);
|
||||||
|
if (im->image.data == NULL) return -1;
|
||||||
|
#else
|
||||||
|
if (!im->image.no_free)
|
||||||
{
|
{
|
||||||
// im->image.data = realloc(im->image.data, siz);
|
|
||||||
if (im->image.data) free(im->image.data);
|
if (im->image.data) free(im->image.data);
|
||||||
im->image.data = malloc(siz);
|
im->image.data = malloc(siz);
|
||||||
}
|
|
||||||
if (im->image.data == NULL) return -1;
|
if (im->image.data == NULL) return -1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND
|
#ifdef HAVE_VALGRIND
|
||||||
VALGRIND_MAKE_READABLE(im->image.data, siz);
|
VALGRIND_MAKE_READABLE(im->image.data, siz);
|
||||||
|
|
Loading…
Reference in New Issue