mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
Don't destroy layers if we never created them.
This commit is contained in:
parent
6e5344464b
commit
fdaad39a57
@ -239,6 +239,8 @@ void ami_plot_ra_free(struct gui_globals *gg)
|
||||
{
|
||||
init_layers_count--;
|
||||
|
||||
if(init_layers_count < 0) return;
|
||||
|
||||
if((init_layers_count == 0) && (pool_pens != NULL)) {
|
||||
ami_memory_itempool_delete(pool_pens);
|
||||
pool_pens = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user