diff options
author | 2011-06-28 08:14:45 +0000 | |
---|---|---|
committer | 2011-06-28 08:14:45 +0000 | |
commit | 9704fb140c8c011764b4f3a8c99b52922a35b090 (patch) | |
tree | 60e7190a4c2ed3ff59cb866a7ce50b78e6f35b77 /src/osd/windows/drawd3d.c | |
parent | 3e4d96b679cec723e0946fd89cb2bcf436a1e9b9 (diff) |
Fixed memory leaks in HLSL code (no whatsnew)
Diffstat (limited to 'src/osd/windows/drawd3d.c')
-rw-r--r-- | src/osd/windows/drawd3d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osd/windows/drawd3d.c b/src/osd/windows/drawd3d.c index d75c8f275ca..3f3cc3a7947 100644 --- a/src/osd/windows/drawd3d.c +++ b/src/osd/windows/drawd3d.c @@ -507,6 +507,9 @@ static void drawd3d_window_destroy(win_window_info *window) if (d3d == NULL) return; + // free our effects + d3d->hlsl->delete_resources(); + // delete the HLSL interface global_free(d3d->hlsl); @@ -935,6 +938,8 @@ static void device_delete_resources(d3d_info *d3d) // free our effects d3d->hlsl->delete_resources(); + + global_free(d3d->hlsl); } |