We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e6581d commit 53b5ba6Copy full SHA for 53b5ba6
src/widgets.cpp
@@ -66,6 +66,7 @@ static Image *loadIntoImageCache(Context &ctx, const char *filename) {
66
int w, h, bytesPerPixel;
67
unsigned char *data = stbi_load(filename, &w, &h, &bytesPerPixel, 0);
68
if (data == nullptr) {
69
+ delete image;
70
return nullptr;
71
}
72
0 commit comments