Skip to content

Commit 08dddbd

Browse files
committed
fix(w3dview): add missing NULL assignments for m_pCursor and m_pCursorScene in CleanupResources
1 parent ac28764 commit 08dddbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Core/Tools/W3DView/W3DViewDoc.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,11 @@ CW3DViewDoc::CleanupResources (void)
170170

171171
if (m_pCursor != NULL) {
172172
m_pCursor->Remove ();
173+
m_pCursor = NULL;
174+
}
175+
if (m_pCursorScene) {
176+
m_pCursorScene = NULL;
173177
}
174-
m_pCursorScene = NULL;
175178

176179
if (m_pCScene)
177180
{

0 commit comments

Comments
 (0)