Fix use of freed memory

This commit is contained in:
Nedko Arnaudov 2009-08-29 00:29:46 +03:00
parent 270ef0fb71
commit 2309cbab83
1 changed files with 1 additions and 0 deletions

View File

@ -511,6 +511,7 @@ studio_clear(void)
g_studio.modified = false;
g_studio.persisted = false;
INIT_LIST_HEAD(&g_studio.jack_params); /* we will destroy the leaves as part of tree destroy traversal */
while (!list_empty(&g_studio.jack_conf))
{
node_ptr = g_studio.jack_conf.next;