summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
diff options
context:
space:
mode:
authorlioncash <mathew1900@hotmail.com>2013-01-24 08:21:08 -0500
committerlioncash <mathew1900@hotmail.com>2013-01-24 08:21:08 -0500
commit2db0c4270eda2e652bb39e394aa8a576785a2354 (patch)
tree4622588e4e2f3634e1c879da11ef731c7a9e0a8f /Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
parentf69b6b595ef80acf5ce776a80b1df27033bc7fdf (diff)
Fix a potential memory leak on non-windows systems.
Also added a FIXME to BPStructs.cpp and BPMemLoader.cpp
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
index 6a17a40eb1..f0674a96cc 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/BPMemLoader.cpp
@@ -137,6 +137,7 @@ void SWBPWritten(int address, int newvalue)
for (int i = 0; i < tmem_cfg.preload_tile_info.count; ++i)
{
+ // FIXME: Duplicate conditions
if (tmem_addr_even + TMEM_LINE_SIZE > TMEM_SIZE ||
tmem_addr_even + TMEM_LINE_SIZE > TMEM_SIZE)
break;