summaryrefslogtreecommitdiff
path: root/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/fxge/agg/agg23/fx_agg_path_storage.cpp')
-rw-r--r--core/src/fxge/agg/agg23/fx_agg_path_storage.cpp3
1 files changed, 3 insertions, 0 deletions
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 b62d4baa1c..b4b184e0a4 100644
--- a/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp
+++ b/core/src/fxge/agg/agg23/fx_agg_path_storage.cpp
@@ -71,6 +71,9 @@ void path_storage::allocate_block(unsigned nb)
FX_Alloc( FX_FLOAT, block_size * 2 +
block_size /
(sizeof(FX_FLOAT) / sizeof(unsigned char)));
+ if (!m_coord_blocks[nb]) {
+ return;
+ }
m_cmd_blocks[nb] =
(unsigned char*)(m_coord_blocks[nb] + block_size * 2);
m_total_blocks++;