Package: libg3d / 0.0.8-26

Fix-memory-leaks-7.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?=
 <picca@synchrotron-soleil.fr>
Date: Mon, 16 Aug 2010 21:29:29 +0200
Subject: Fix memory leaks

Forwarded: https://mail.gna.org/public/libg3d-devel/2010-08/msg00000.html
Bug-Debian: https://bugs.debian.org/593209
---
 src/face.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/face.c b/src/face.c
index d012f57..f14c941 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);
 }