# HG changeset patch # User Thinker K.F. Li # Date 1291367948 -28800 # Node ID 6723b253799326797bca3e97397396a57587308a # Parent e229e1be6b8254f28c4e78977de7dfccd8f9f952 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(). diff -r e229e1be6b82 -r 6723b2537993 src/graph_engine_openvg.c --- 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;