diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-04-15 14:25:02 -0600 |
|---|---|---|
| committer | Chia-I Wu <olv@lunarg.com> | 2015-04-16 17:48:20 +0800 |
| commit | 375a122d23c758e71d5048c5cd34db8afaa16496 (patch) | |
| tree | a321b3b2a3d519ee2e3952b4699e204182b917fb | |
| parent | 7f44daa1aad388be33db46a4c10ef541cd9b4b03 (diff) | |
| download | usermoji-375a122d23c758e71d5048c5cd34db8afaa16496.tar.xz | |
layers: Check for NULL ptrs while iterating over fenceMap
| -rw-r--r-- | layers/mem_tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 8394bc8b..3dc04124 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -250,7 +250,7 @@ static void retireQueueFences(VkQueue queue) map<uint64_t, MT_FENCE_INFO*>::iterator it = fenceMap.begin(); map<uint64_t, MT_FENCE_INFO*>::iterator temp; while (it != fenceMap.end()) { - if (((*it).second)->queue == queue) { + if ((((*it).second) != NULL) && ((*it).second)->queue == queue) { temp = it; ++temp; deleteFenceInfo((*it).first); |
