Fix use of uninitalized member

The use of uninitalized member was caused by the recent revert.

The ladish_room::object_path member is not actually used only for room
template objects.
This commit is contained in:
Nedko Arnaudov 2011-05-16 03:42:24 +03:00
parent dc11cfe515
commit f0e233055b
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
/* /*
* LADI Session Handler (ladish) * LADI Session Handler (ladish)
* *
* Copyright (C) 2010 Nedko Arnaudov <nedko@arnaudov.name> * Copyright (C) 2010, 2011 Nedko Arnaudov <nedko@arnaudov.name>
* *
************************************************************************** **************************************************************************
* This file contains the core parts of room object implementation * This file contains the core parts of room object implementation
@ -404,11 +404,12 @@ void ladish_room_destroy(ladish_room_handle room_handle)
ladish_studio_room_disappeared((ladish_room_handle)room_ptr); ladish_studio_room_disappeared((ladish_room_handle)room_ptr);
ladish_studio_release_room_index(room_ptr->index); ladish_studio_release_room_index(room_ptr->index);
free(room_ptr->object_path);
} }
ladish_graph_destroy(room_ptr->graph); ladish_graph_destroy(room_ptr->graph);
free(room_ptr->name); free(room_ptr->name);
free(room_ptr->object_path);
free(room_ptr); free(room_ptr);
} }