diff options
| author | Alexander Gavrilov | 2012-08-26 22:43:18 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-08-26 22:43:18 +0400 |
| commit | b2bdc199cb6aec64034e672f7590aa2a7a27194c (patch) | |
| tree | 825af130e3c0bb313e3699099836e3acfafe7626 /library/VTableInterpose.cpp | |
| parent | 84f6663a078ee8907fb1287fc25672c5f226f420 (diff) | |
| download | dfhack-b2bdc199cb6aec64034e672f7590aa2a7a27194c.tar.gz dfhack-b2bdc199cb6aec64034e672f7590aa2a7a27194c.tar.bz2 dfhack-b2bdc199cb6aec64034e672f7590aa2a7a27194c.tar.xz | |
Fix NULL pointer access in ~virtual_identity.
Diffstat (limited to 'library/VTableInterpose.cpp')
| -rw-r--r-- | library/VTableInterpose.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/VTableInterpose.cpp b/library/VTableInterpose.cpp index 47110cec..04c436ba 100644 --- a/library/VTableInterpose.cpp +++ b/library/VTableInterpose.cpp @@ -311,7 +311,7 @@ void VMethodInterposeLinkBase::on_host_delete(virtual_identity *from) // Unlink the chains child_hosts.erase(from); - from->interpose_list.erase(vmethod_idx); + from->interpose_list[vmethod_idx] = NULL; } } |
