Match new with delete (#238)

Only applicable if we actually fail to create a vsurface
This commit is contained in:
Asdow
2023-10-10 23:37:11 +03:00
committed by GitHub
parent 7483829c65
commit 5ec08231a3
+1 -1
View File
@@ -1190,7 +1190,7 @@ HVSURFACE CreateVideoSurface( VSURFACE_DESC *VSurfaceDesc )
DbgMessage( TOPIC_VIDEOSURFACE, DBG_LEVEL_2, String( "Failed to create Video Surface in video memory" ) );
DDReleaseSurface ( &lpDDS, &lpDDS2 );
MemFree( hVSurface );
delete hVSurface;
return( NULL );
}