daemon: fix unload of empty projects

This commit is contained in:
Nedko Arnaudov 2010-09-05 01:27:18 +03:00
parent b812ccca67
commit c5acbafc8f
1 changed files with 3 additions and 1 deletions

View File

@ -639,7 +639,7 @@ bool ladish_room_unload_project(ladish_room_handle room_handle)
{
if (!ladish_app_supervisor_has_apps(room_ptr->app_supervisor))
{
return true;
goto done;
}
log_info("Stopping room apps...");
@ -663,6 +663,8 @@ bool ladish_room_unload_project(ladish_room_handle room_handle)
log_info("Room apps stopped.");
ladish_graph_dump(room_ptr->graph);
room_ptr->project_unloading = false;
done:
if (room_ptr->project_name != NULL)
{
free(room_ptr->project_name);