summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Image_Surface.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx
index 0e31d45b1..964c5d567 100644
--- a/src/Fl_Image_Surface.cxx
+++ b/src/Fl_Image_Surface.cxx
@@ -141,7 +141,6 @@ static int find_slot(void) { // return an available slot to memorize an Fl_Image
if (count_offscreens >= max) {
max += 20;
offscreen_api_surface = (Fl_Image_Surface**)realloc(offscreen_api_surface, max * sizeof(void *));
- return find_slot();
}
return count_offscreens++;
}