diff options
author | Kristian Høgsberg <krh@redhat.com> | 2006-05-20 00:58:28 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@dinky.bitplanet.net> | 2006-05-20 00:58:28 -0400 |
commit | 7994974a56facddcf197742ea691d00e1e457375 (patch) | |
tree | b10a6976e3b70db8559b1f3445a96b64a7a25b98 | |
parent | f7a5c852f4b6af4a3b1f489c333e338799d6cb00 (diff) |
Initialize unused constraints so model_fini() doesn't crash.
-rw-r--r-- | akamaru.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |