File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 9999PlaySoundDialogClass::OnCancel (void )
100100{
101101 SoundObj->Stop ();
102+ SoundObj.Clear ();
102103
103104 CDialog::OnCancel ();
104105 return ;
Original file line number Diff line number Diff line change @@ -198,10 +198,10 @@ RingPropertySheetClass::Add_Object_To_Viewer (void)
198198
199199 //
200200 // Display the object
201- //
202- doc->Reload_Displayed_Object ();
203- m_LastSavedName = m_RenderObj->Get_Name ();
204- m_RenderObj = RefCountPtr<RingRenderObjClass>::Create_AddRef ((RingRenderObjClass *)doc->GetDisplayedObject ());
201+ //
202+ doc->Reload_Displayed_Object ();
203+ m_LastSavedName = m_RenderObj->Get_Name ();
204+ m_RenderObj = RefCountPtr<RingRenderObjClass>::Create_AddRef ((RingRenderObjClass *)doc->GetDisplayedObject ());
205205
206206 //
207207 // Pass the object along to the pages
Original file line number Diff line number Diff line change @@ -380,9 +380,9 @@ CW3DViewDoc::InitScene (void)
380380 m_pC2DScene = new SimpleSceneClass;
381381 ASSERT (m_pC2DScene);
382382
383- // Instantiate a new 2D cursor scene
384- m_pCursorScene = RefCountPtr<SceneClass>::Create_NoAddRef (new SimpleSceneClass);
385- ASSERT (m_pCursorScene.Peek ());
383+ // Instantiate a new 2D cursor scene
384+ m_pCursorScene = RefCountPtr<SceneClass>::Create_NoAddRef (new SimpleSceneClass);
385+ ASSERT (m_pCursorScene.Peek ());
386386
387387 Create_Cursor ();
388388 m_pCursorScene->Add_Render_Object (m_pCursor.Peek ());
@@ -652,6 +652,7 @@ CW3DViewDoc::DisplayObject
652652 {
653653 // Lose the animation
654654 SAFE_DELETE (m_pCAnimCombo);
655+ m_pCAnimation.Clear ();
655656
656657 // Do we have an old object to remove from the scene?
657658 if (add_ghost == false ) {
You can’t perform that action at this time.
0 commit comments