Browse Source

jpeg: close file when finished

K. Lange 1 year ago
parent
commit
bac479e309
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/jpeg.c

+ 2 - 0
lib/jpeg.c

@@ -454,5 +454,7 @@ int load_sprite_jpg(sprite_t * tsprite, char * filename) {
 		}
 	}
 
+	fclose(f);
+
 	return 0;
 }