summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-05-20 00:58:28 -0400
committerKristian Høgsberg <krh@dinky.bitplanet.net>2006-05-20 00:58:28 -0400
commit7994974a56facddcf197742ea691d00e1e457375 (patch)
treeb10a6976e3b70db8559b1f3445a96b64a7a25b98
parentf7a5c852f4b6af4a3b1f489c333e338799d6cb00 (diff)
Initialize unused constraints so model_fini() doesn't crash.
-rw-r--r--akamaru.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/akamaru.c b/akamaru.c
index 48a226e..f7fc368 100644
--- a/akamaru.c
+++ b/akamaru.c
@@ -121,6 +121,8 @@ model_init_rope (Model *model)
model->num_objects = num_objects;
model->sticks = g_new (Stick, num_sticks);
model->num_sticks = num_sticks;
+ model->offsets = NULL;
+ model->num_objects = 0;
for (i = 0; i < num_objects; i++) {
model->objects[i].position.x = 200;