More logical closing sequence (d3d)
[vlc.git] / modules / video_output / msw / direct3d.c
index d639bb7..e2b91b2 100644 (file)
@@ -225,10 +225,10 @@ static void CloseVideo( vlc_object_t *p_this )
 {
     vout_thread_t * p_vout = (vout_thread_t *)p_this;
 
-    Direct3DVoutRelease( p_vout );
-
     CommonClean( p_vout );
 
+    Direct3DVoutRelease( p_vout );
+
     free( p_vout->p_sys );
 }