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
7
7
- Change: Refactored dielectric class for clarity
8
8
- Fix: Update local Markdeep library (for offline reading) to v1.11. The prior version had
9
9
incorrect content (#712 )
10
+ - Fix: Image texture destructor should call ` STBI_FREE ` instead of delete (#734 )
10
11
11
12
### _ In One Weekend_
12
13
- 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 {
105
105
}
106
106
107
107
~image_texture () {
108
- delete data;
108
+ STBI_FREE ( data) ;
109
109
}
110
110
111
111
virtual color value (double u, double v, const vec3& p) const override {
You can’t perform that action at this time.
0 commit comments