diff options
author | Filippos Karapetis | 2009-02-17 13:51:52 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-17 13:51:52 +0000 |
commit | d39d83e525d4a62e5b73727c65c7864d0adf2865 (patch) | |
tree | 20f77c124ac2429d22ab9ed3b3005dad9b185ef0 /engines/sci/engine/gc.cpp | |
parent | b8d2c41cdd5b6a1af38aec3f0f0ccda4c2c304f0 (diff) | |
download | scummvm-rg350-d39d83e525d4a62e5b73727c65c7864d0adf2865.tar.gz scummvm-rg350-d39d83e525d4a62e5b73727c65c7864d0adf2865.tar.bz2 scummvm-rg350-d39d83e525d4a62e5b73727c65c7864d0adf2865.zip |
Replaced sci_free() with free() - it's OK to free a NULL pointer, so the checking that sci_free() performed is not necessary
svn-id: r38406
Diffstat (limited to 'engines/sci/engine/gc.cpp')
-rw-r--r-- | engines/sci/engine/gc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/gc.cpp b/engines/sci/engine/gc.cpp index 295455cad9..63e7b22afb 100644 --- a/engines/sci/engine/gc.cpp +++ b/engines/sci/engine/gc.cpp @@ -86,7 +86,7 @@ worklist_pop(worklist_t **wlp) { if (!wl->used) { *wlp = wl->next; - sci_free(wl); + free(wl); } return retval; @@ -97,7 +97,7 @@ free_worklist(worklist_t *wl) { if (wl) { if (wl->next) free_worklist(wl->next); - sci_free(wl); + free(wl); } } @@ -235,7 +235,7 @@ find_all_used_references(state_t *s) { for (i = 1; i < sm->heap_size; i++) if (interfaces[i]) interfaces[i]->deallocate_self(interfaces[i]); - sci_free(interfaces); + free(interfaces); delete nonnormal_map; return normal_map; } |