oi_list might be null if overlay initialization failed for any reason

This commit is contained in:
Pierangelo Masarati 2006-08-18 10:12:21 +00:00
parent 3e89a4ff82
commit 2947c098ce

View File

@ -210,10 +210,13 @@ over_db_destroy(
rc = over_db_func( be, db_destroy );
for (next = on->on_next; on; on=next) {
next = on->on_next;
free( on );
if ( on ) {
for (next = on->on_next; on; on=next) {
next = on->on_next;
free( on );
}
}
free( oi );
return rc;
}