• R/O
  • SSH
  • HTTPS

mmdx: Commit


Commit MetaInfo

Revision868 (tree)
Zeit2011-06-16 09:38:44
Autorwilfrem

Log Message

Disposeで破棄+初期化するように修正

Ändern Zusammenfassung

Diff

--- branches/XNA4/SlimMMDX/SlimMMDXCore.cs (revision 867)
+++ branches/XNA4/SlimMMDX/SlimMMDXCore.cs (revision 868)
@@ -99,6 +99,13 @@
9999 }
100100 AccessoryFactoryFromFile = new MMDAccessoryFactory();
101101 }
102-
102+ /// <summary>
103+ /// 破棄処理
104+ /// </summary>
105+ public override void Dispose()
106+ {
107+ m_device = null;
108+ base.Dispose();
109+ }
103110 }
104111 }
--- branches/XNA4/MikuMikuDanceCore/MMDCore.cs (revision 867)
+++ branches/XNA4/MikuMikuDanceCore/MMDCore.cs (revision 868)
@@ -223,9 +223,10 @@
223223 /// <summary>
224224 /// 終了時に呼び出す。
225225 /// </summary>
226- public void Dispose()
226+ public virtual void Dispose()
227227 {
228228 PhysicsThreadManager.Instanse.Dispose();
229+ m_inst = null;
229230 }
230231
231232 #endregion
Show on old repository browser