Package: libg3d / 0.0.8-20

fix-memory-leaks-3.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix memory leaks
Forwarded: https://mail.gna.org/public/libg3d-devel/2010-08/msg00000.html
Author: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
Bug-Debian: http://bugs.debian.org/593209

---
diff --git a/src/face.c b/src/face.c
index d012f57bd4b9b854871bd75807c467a56f0d9317..f14c941b819c8d70f780b3d42d0b218bf57095ac 100644
--- a/src/face.c
+++ b/src/face.c
@@ -30,6 +30,8 @@ void g3d_face_free(G3DFace *face)
 {
 	if(face->vertex_indices)
 		g_free(face->vertex_indices);
+	if(face->normals)
+		g_free(face->normals);
 	g_free(face);
 }