Commit 2999e309 authored by Michael Henning's avatar Michael Henning

plug-ins: fix memory leak in file-html-table

Found using clang's scan-build.
parent 2491a3a0
......@@ -263,8 +263,8 @@ save_image (const gchar *filename,
gimp_progress_init_printf (_("Saving '%s'"),
gimp_filename_to_utf8 (filename));
buf = g_new (guchar, babl_format_get_bytes_per_pixel (format));
buf2 = g_new (guchar, babl_format_get_bytes_per_pixel (format));
buf = g_newa (guchar, babl_format_get_bytes_per_pixel (format));
buf2 = g_newa (guchar, babl_format_get_bytes_per_pixel (format));
width = height = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment