Skip to content

Commit

Permalink
lstopo/nativesvg: declare and destroy colors
Browse files Browse the repository at this point in the history
Not really needed for this backend, but better for consistency.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Sep 19, 2020
1 parent 4a4e040 commit c3262f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/lstopo/lstopo-svg.c
Expand Up @@ -126,6 +126,7 @@ int output_nativesvg(struct lstopo_output * loutput, const char *filename)
loutput->width, loutput->height, loutput->width, loutput->height);

/* ready */
declare_colors(loutput);
lstopo_prepare_custom_styles(loutput);

output_draw(loutput);
Expand All @@ -134,5 +135,6 @@ int output_nativesvg(struct lstopo_output * loutput, const char *filename)
if (output != stdout)
fclose(output);

destroy_colors();
return 0;
}

0 comments on commit c3262f9

Please sign in to comment.