Skip to content

Commit

Permalink
IECoreRenderMan.RendererTest : del lightAttributes
Browse files Browse the repository at this point in the history
We can't hold onto the `lightAttributes` longer than the renderer or it
will attempt to delete a shader from a null Riley pointer when cleaning
up the `lightAttributes`.
  • Loading branch information
ericmehl committed Feb 24, 2025
1 parent dd7c7c1 commit 61a02d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/IECoreRenderManTest/RendererTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def testMissingLightShader( self ) :
self.assertEqual( messageHandler.messages[0].level, IECore.MessageHandler.Level.Warning )
self.assertEqual( messageHandler.messages[0].message, "Unable to find shader \"BadShader\"." )

del lightAttributes
del light
del renderer

Expand Down

0 comments on commit 61a02d2

Please sign in to comment.