瀏覽代碼

Update textures.c

Ray 4 年之前
父節點
當前提交
c36a6f3d9f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/textures.c

+ 2 - 2
src/textures.c

@@ -2170,7 +2170,7 @@ Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorsCount)
             }
             }
         }
         }
 
 
-        UnloadImagePixels(pixels);
+        UnloadImageColors(pixels);
     }
     }
     
     
     *colorsCount = palCount;
     *colorsCount = palCount;
@@ -2187,7 +2187,7 @@ void UnloadImageColors(Color *colors)
 // Unload colors palette loaded with LoadImagePalette()
 // Unload colors palette loaded with LoadImagePalette()
 void UnloadImagePalette(Color *colors)
 void UnloadImagePalette(Color *colors)
 {
 {
-    RL_FREE(palette);
+    RL_FREE(colors);
 }
 }
 
 
 // Get pixel data from image as Vector4 array (float normalized)
 // Get pixel data from image as Vector4 array (float normalized)