mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Ensure we have a layer before deleting it.
This commit is contained in:
parent
3c0ff81be4
commit
6e5344464b
@ -245,7 +245,7 @@ void ami_plot_ra_free(struct gui_globals *gg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(gg->rp) {
|
if(gg->rp) {
|
||||||
DeleteLayer(0,gg->rp->Layer);
|
if(gg->rp->Layer != NULL) DeleteLayer(0, gg->rp->Layer);
|
||||||
free(gg->rp->TmpRas);
|
free(gg->rp->TmpRas);
|
||||||
free(gg->rp->AreaInfo);
|
free(gg->rp->AreaInfo);
|
||||||
free(gg->rp);
|
free(gg->rp);
|
||||||
|
Loading…
Reference in New Issue
Block a user