Mercurial > MadButterfly
changeset 1086:6723b2537993 openvg
Fix the issue that radial patterns would be changed in undefined way.
This is caused by reallocating a wrong pointer in
_mbe_pattern_create_gradient().
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 03 Dec 2010 17:19:08 +0800 |
parents | e229e1be6b82 |
children | cd34de1a6960 |
files | src/graph_engine_openvg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graph_engine_openvg.c Fri Dec 03 10:33:54 2010 +0800 +++ b/src/graph_engine_openvg.c Fri Dec 03 17:19:08 2010 +0800 @@ -271,7 +271,7 @@ /* Make sure there is enough space */ if(max_stop_cnt < stop_cnt) { max_stop_cnt = (stop_cnt + 0xf) & ~0xf; - cur_ov_stop = (VGfloat *)realloc(stops, + cur_ov_stop = (VGfloat *)realloc(ov_stops, max_stop_cnt * sizeof(VGfloat) * 5); if(cur_ov_stop == NULL) { max_stop_cnt = 0;