Skip to content

Commit 6997488

Browse files
committed
Fixed memory leak in textured projected_through objects.
1 parent 53f0ebd commit 6997488

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

source/base/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define OFFICIAL_VERSION_STRING "3.7.1"
4646
#define OFFICIAL_VERSION_NUMBER 371
4747

48-
#define POV_RAY_PRERELEASE "alpha.8730959"
48+
#define POV_RAY_PRERELEASE "alpha.8731946"
4949

5050
#if (POV_RAY_IS_AUTOBUILD == 1) && ((POV_RAY_IS_OFFICIAL == 1) || (POV_RAY_IS_SEMI_OFFICIAL == 1))
5151
#ifdef POV_RAY_PRERELEASE

source/parser/parser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9908,6 +9908,7 @@ void Parser::Post_Process (ObjectPtr Object, ObjectPtr Parent)
99089908
}
99099909
if ((reinterpret_cast<LightSource *>(Object))->Projected_Through_Object->Texture != NULL)
99109910
{
9911+
Destroy_Textures((reinterpret_cast<LightSource *>(Object))->Projected_Through_Object->Texture);
99119912
(reinterpret_cast<LightSource *>(Object))->Projected_Through_Object->Texture = NULL;
99129913
Warning("Projected through objects can not have texture, texture removed.");
99139914
}

unix/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.1-alpha.8730959
1+
3.7.1-alpha.8731946

0 commit comments

Comments
 (0)