… | … | ||
---|---|---|---|
888 | 888 | ||
889 | void object::unlink () | 889 | void object::unlink () |
890 | { | 890 | { |
891 | count = 0; | 891 | count = 0; |
892 | 892 | ||
893 | if (this == objects) | ||
894 | objects = next; | ||
895 | |||
893 | /* Remove this object from the list of used objects */ | 896 | /* Remove this object from the list of used objects */ |
894 | if (prev) | 897 | if (prev) |
895 | { | 898 | { |
896 | prev->next = next; | 899 | prev->next = next; |
897 | prev = 0; | 900 | prev = 0; |
… | … | ||
900 | if (next) | 903 | if (next) |
901 | { | 904 | { |
902 | next->prev = prev; | 905 | next->prev = prev; |
903 | next = 0; | 906 | next = 0; |
904 | } | 907 | } |
905 | |||
906 | if (this == objects) | ||
907 | objects = next; | ||
908 | } | 908 | } |
909 | 909 | ||
910 | object *object::create () | 910 | object *object::create () |
911 | { | 911 | { |
912 | object *op; | 912 | object *op; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |