File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Change Log -- Ray Tracing in One Weekend
77 - Change: Refactored dielectric class for clarity
88 - Fix: Update local Markdeep library (for offline reading) to v1.11. The prior version had
99 incorrect content (#712 )
10+ - Fix: Image texture destructor should call ` STBI_FREE ` instead of delete (#734 )
1011
1112### _ In One Weekend_
1213 - Delete: Remove premature ` cstdlib ` include; not needed until we use ` rand() ` (#687 )
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class image_texture : public texture {
105105 }
106106
107107 ~image_texture () {
108- delete data;
108+ STBI_FREE ( data) ;
109109 }
110110
111111 virtual color value (double u, double v, const vec3& p) const override {
You can’t perform that action at this time.
0 commit comments