mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
FLUID: autodoc image memory allocation fix.
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ static int convert_RGB_to_RGBA(Fl_RGB_Image *&img) {
|
|||||||
delete img;
|
delete img;
|
||||||
// Create the new image
|
// Create the new image
|
||||||
img = new Fl_RGB_Image(data, img_w, img_h, 4);
|
img = new Fl_RGB_Image(data, img_w, img_h, 4);
|
||||||
delete[] data;
|
img->alloc_array = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user