Chromium Code Reviews| Index: core/src/fxge/agg/agg23/fx_agg_path_storage.cpp |
| diff --git a/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp b/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp |
| index 8c4b701ebe349038b3555f271732f87bc3d59cd4..586d709837dcacee7d53cfef129813e25bef6dfd 100644 |
| --- a/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp |
| +++ b/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp |
| @@ -51,10 +51,7 @@ void path_storage::allocate_block(unsigned nb) |
| { |
| if(nb >= m_max_blocks) { |
| FX_FLOAT** new_coords = |
| - FX_Alloc( FX_FLOAT*, (m_max_blocks + block_pool) * 2); |
| - if (!new_coords) { |
| - return; |
| - } |
| + FX_Alloc2D(FX_FLOAT*, m_max_blocks + block_pool, 2); |
|
Lei Zhang
2015/05/15 23:44:17
nit: indentation
Tom Sepez
2015/05/18 16:04:31
Done.
|
| unsigned char** new_cmds = |
| (unsigned char**)(new_coords + m_max_blocks + block_pool); |
| if(m_coord_blocks) { |