evas render - async sw - fix context duplication by using proper dup call
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 4 Oct 2015 07:50:58 +0000 (16:50 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 4 Oct 2015 07:58:42 +0000 (16:58 +0900)
commit8a4ddea224ee2cc411269024311691cf8841a2bc
tree073d3d59b3347ae7aca766608d6146179aadc644
parent82095adae4d17fc4d04d490d478771d9e1be0006
evas render - async sw - fix context duplication by using proper dup call

valgrind pointed this one out. we access freed memory when we dup a
context because the context CONTAINS ptrs to things like rects for
cutouts. we didnt dup these. use the proper context dup call (and
properly ref pixman color image too). this was a random bug/crash
waiting to happen and valgrind caught it. suprising it hasnt turned up
before :/

@fix
src/lib/evas/common/evas_draw_main.c
src/modules/evas/engines/software_generic/evas_engine.c