summaryrefslogtreecommitdiff
path: root/src/Fl_PostScript.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-02 18:39:34 +0000
committerManolo Gouy <Manolo>2011-02-02 18:39:34 +0000
commit8072ef8ce89b5b94e7f705e1099b7e4e8c4c3a30 (patch)
treec8354ac58372c147fbebf80a037c16bb9ade1424 /src/Fl_PostScript.cxx
parent40624df4a9ad48a5d60cb56b6b9428329bb37c17 (diff)
Replaced a bunch of delete by delete[] where it's legitimate.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_PostScript.cxx')
-rw-r--r--src/Fl_PostScript.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx
index f1e9a8177..372b3e624 100644
--- a/src/Fl_PostScript.cxx
+++ b/src/Fl_PostScript.cxx
@@ -1017,7 +1017,7 @@ static void transformed_draw_extra(const char* str, int n, double x, double y, i
fl_delete_offscreen(off);
// compute the mask of what is not the background
uchar *mask = calc_mask(img, w, h, bg_color);
- delete img;
+ delete[] img;
// write the string image to PostScript as a scaled bitmask
fprintf(output, "%g %g %g %g %d %d MI\n", x, y - h*0.77/scale, w/scale, h/scale, w, h);
uchar *di;
@@ -1032,7 +1032,7 @@ static void transformed_draw_extra(const char* str, int n, double x, double y, i
fprintf(output,"\n");
}
fprintf(output,">\n");
- delete mask;
+ delete[] mask;
}
static int is_in_table(unsigned utf) {