summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2011-06-28 08:14:45 +0000
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2011-06-28 08:14:45 +0000
commit9704fb140c8c011764b4f3a8c99b52922a35b090 (patch) (github)
tree60e7190a4c2ed3ff59cb866a7ce50b78e6f35b77
parent3e4d96b679cec723e0946fd89cb2bcf436a1e9b9 (diff)
downloadmame-9704fb140c8c011764b4f3a8c99b52922a35b090.tar.bz2
mame-9704fb140c8c011764b4f3a8c99b52922a35b090.zip
Fixed memory leaks in HLSL code (no whatsnew)
-rw-r--r--src/osd/windows/drawd3d.c5
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);
}