remove memory leak

This commit is contained in:
Holger Vogt 2021-03-17 16:15:21 +01:00
parent 5b3007e06a
commit e1ae8c7495
1 changed files with 1 additions and 0 deletions

View File

@ -305,6 +305,7 @@ int PS_NewViewport(GRAPH *graph)
/* set up a reasonable font */
fprintf(plotfile, "/%sLatin1 findfont %d scalefont setfont\n\n",
psfont, (int) (fontsize * scale));
tfree(graph->devdep);
graph->devdep = TMALLOC(PSdevdep, 1);
graph->n_byte_devdep = sizeof(PSdevdep);
DEVDEP(graph).lastlinestyle = -1;