diff options
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/plotters.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index c5020daec..3aef04344 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -251,7 +251,10 @@ static ULONG ami_plot_obtain_pen(struct MinList *shared_pens, ULONG colour) MEMF_PRIVATE | MEMF_CLEAR)) { AddTail((struct List *)shared_pens, (struct Node *)node); } - } + } else { + /* Immediately release the pen if we can't keep track of it. */ + ReleasePen(scrn->ViewPort.ColorMap, pen); + } return pen; } |