From 0255cd0213a219fba69860200a987a0d837493a0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 12 May 2009 23:30:10 +0000 Subject: SCI: Removed sci_memory.h/.cpp svn-id: r40514 --- engines/sci/engine/scriptdebug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sci/engine/scriptdebug.cpp') diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 3a23c26324..4ea47c8710 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -2312,7 +2312,7 @@ const generic_config_flag_t SCIk_Debug_Names[SCIk_DEBUG_MODES] = { } ; void set_debug_mode(EngineState *s, int mode, const char *areas) { - char *param = (char*)sci_malloc(strlen(areas) + 2); + char *param = (char*)malloc(strlen(areas) + 2); param[0] = (mode) ? '+' : '-'; strcpy(param + 1, areas); @@ -2583,10 +2583,10 @@ static Breakpoint *bp_alloc(EngineState *s) { bp = s->bp_list; while (bp->next) bp = bp->next; - bp->next = (Breakpoint *)sci_malloc(sizeof(Breakpoint)); + bp->next = (Breakpoint *)malloc(sizeof(Breakpoint)); bp = bp->next; } else { - s->bp_list = (Breakpoint *)sci_malloc(sizeof(Breakpoint)); + s->bp_list = (Breakpoint *)malloc(sizeof(Breakpoint)); bp = s->bp_list; } @@ -2605,7 +2605,7 @@ int c_bpx(EngineState *s, const Common::Array &cmdParams) { bp = bp_alloc(s); bp->type = BREAK_SELECTOR; - bp->data.name = (char *)sci_malloc(strlen(cmdParams [0].str) + 1); + bp->data.name = (char *)malloc(strlen(cmdParams [0].str) + 1); strcpy(bp->data.name, cmdParams [0].str); s->have_bp |= BREAK_SELECTOR; -- cgit v1.2.3