From 8072ef8ce89b5b94e7f705e1099b7e4e8c4c3a30 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 2 Feb 2011 18:39:34 +0000 Subject: 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 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_cocoa.mm') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 90e40a07a..66c6373d9 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3265,7 +3265,7 @@ unsigned char *Fl_X::bitmap_from_window_rect(Fl_Window *win, int x, int y, int w static void imgProviderReleaseData (void *info, const void *data, size_t size) { - delete (unsigned char *)data; + delete[] (unsigned char *)data; } CGImageRef Fl_X::CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, int h) -- cgit v1.2.3