DXGL r658 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r657
|
r658
|
r659
>
Date:
18:17, 28 May 2016
Author:
admin
Status:
new
Tags:
Comment:
Fix a resource leak in dxgltest.exe
Modified paths:
/dxgltest/Tests2D.cpp
(modified) (
history
)
Diff
[
purge
]
Index: dxgltest/Tests2D.cpp
—
—
@@ -39,7 +39,7 @@
40
40
static HWND hWnd;
41
41
static int testnum;
42
42
static unsigned int randnum;
43
-static int testtypes[] = {0,1,0,1,0,1,2,2,2,1};
43
+static int testtypes[] = {0,1,0,1,0,1,2,0,2,1};
44
44
static DWORD counter;
45
45
46
46
static DDSPRITE sprites[16];
—
—
@@ -668,6 +668,7 @@
669
669
ddcaps.dwSize = sizeof(DDCAPS);
670
670
ddinterface->GetCaps(&ddcaps, NULL);
671
671
DrawROPPatterns(ddsrender, sprites, backbuffers, ddver, bpp, ddcaps.dwRops,hWnd,palette);
672
+ if (palette) palette->Release();
672
673
break;
673
674
case 8:
674
675
ddsrender->GetSurfaceDesc(&ddsd);
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version