summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_direct3d.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_direct3d.c b/libvo/vo_direct3d.c
index 37852a9a27..96dcdb5c66 100644
--- a/libvo/vo_direct3d.c
+++ b/libvo/vo_direct3d.c
@@ -476,10 +476,9 @@ static void uninit_d3d(void)
destroy_d3d_surfaces();
/* Destroy the D3D Device */
- if (priv->d3d_device) {
+ if (priv->d3d_device)
IDirect3DDevice9_Release(priv->d3d_device);
- priv->d3d_device = NULL;
- }
+ priv->d3d_device = NULL;
/* Stop the whole D3D. */
if (priv->d3d_handle) {