mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
remove memory leak
This commit is contained in:
@@ -305,6 +305,7 @@ int PS_NewViewport(GRAPH *graph)
|
|||||||
/* set up a reasonable font */
|
/* set up a reasonable font */
|
||||||
fprintf(plotfile, "/%sLatin1 findfont %d scalefont setfont\n\n",
|
fprintf(plotfile, "/%sLatin1 findfont %d scalefont setfont\n\n",
|
||||||
psfont, (int) (fontsize * scale));
|
psfont, (int) (fontsize * scale));
|
||||||
|
tfree(graph->devdep);
|
||||||
graph->devdep = TMALLOC(PSdevdep, 1);
|
graph->devdep = TMALLOC(PSdevdep, 1);
|
||||||
graph->n_byte_devdep = sizeof(PSdevdep);
|
graph->n_byte_devdep = sizeof(PSdevdep);
|
||||||
DEVDEP(graph).lastlinestyle = -1;
|
DEVDEP(graph).lastlinestyle = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user