aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorFilippos Karapetis2009-02-17 13:51:52 +0000
committerFilippos Karapetis2009-02-17 13:51:52 +0000
commitd39d83e525d4a62e5b73727c65c7864d0adf2865 (patch)
tree20f77c124ac2429d22ab9ed3b3005dad9b185ef0 /engines/sci/gfx
parentb8d2c41cdd5b6a1af38aec3f0f0ccda4c2c304f0 (diff)
downloadscummvm-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/gfx')
-rw-r--r--engines/sci/gfx/operations.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index dca514c2f4..9eab245df9 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -2269,11 +2269,11 @@ gfxop_new_text(gfx_state_t *state, int font_nr, char *text, int maxwidth,
for (j = 0; j < i; j++)
gfx_free_pixmap(state->driver, handle->text_pixmaps[j]);
- sci_free(handle->text_pixmaps);
- sci_free(handle->text);
- sci_free(handle->lines);
+ free(handle->text_pixmaps);
+ free(handle->text);
+ free(handle->lines);
GFXERROR("Failed to draw text pixmap for line %d/%d\n", i, handle->lines_nr);
- sci_free(handle);
+ free(handle);
return NULL;
}
}