shithub: tinygl

Download patch

ref: 5d2ade97bde945dd2cc5b3ce47b692b433b1378b
parent: 50e4f5c7c24d0aea519007f8274f05bcd89997ad
author: MHS <gek@katherine>
date: Tue Mar 23 10:51:22 EDT 2021

Automatic commit.

--- a/include-demo/chadphys.h
+++ b/include-demo/chadphys.h
@@ -42,6 +42,8 @@
 	return ret;
 }
 static inline void destroy_spatialhash(phys_spatialhash* p){
+	for(size_t i = 0; i < p->xcells * p->ycells * p->zcells; i++)
+		if(p->data[i].data) free(p->data[i].data);
 	if(p->data) free(p->data);
 	p->data = NULL;
 }