Skip to content

Commit 9be888f

Browse files
authored
Merge pull request #1183 from asarium/fix/newVMFree
Fix new/vm_free mismatch reported by AddressSanitizer
2 parents b185d1b + ca2f9b7 commit 9be888f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/hud/hud.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ void hud_close()
12521252
num_gauges = it->hud_gauges.size();
12531253

12541254
for(j = 0; j < num_gauges; j++) {
1255-
vm_free(it->hud_gauges[j]);
1255+
delete it->hud_gauges[j];
12561256
it->hud_gauges[j] = NULL;
12571257
}
12581258
it->hud_gauges.clear();

0 commit comments

Comments
 (0)