Changeset 398

Show
Ignore:
Timestamp:
07/28/07 12:04:36 (1 year ago)
Author:
ctate
Message:

Cleanup:

* Fix cut/paste compile error in effects.c
* Regularise alloc/free use in main-win.c : use the mem_*() wrappers, and don't mix the wrappers with unwrapped ralloc() / free() / etc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/effects.c

    r373 r398  
    13521352                case EF_WONDER: 
    13531353                { 
    1354                         spell_wonder(dir, randint(100) + p_ptr->lev / 5;, beam); 
     1354                        spell_wonder(dir, randint(100) + p_ptr->lev / 5, beam); 
    13551355                        return TRUE; 
    13561356                } 
  • trunk/src/main-win.c

    r388 r398  
    11871187 
    11881188                        /* Cleanup */ 
    1189                         free(lppe); 
     1189                        mem_free(lppe); 
    11901190 
    11911191                        /* Fail */ 
     
    12001200 
    12011201        /* Allocate palette */ 
    1202         pLogPal = (LPLOGPALETTE)ralloc(pLogPalSize); 
     1202        pLogPal = (LPLOGPALETTE)mem_alloc(pLogPalSize); 
    12031203 
    12041204        /* Version */ 
     
    12431243 
    12441244        /* Free something */ 
    1245         if (lppe) free(lppe); 
     1245        if (lppe) mem_free(lppe); 
    12461246 
    12471247        /* Create a new palette, or fail */ 
     
    12501250 
    12511251        /* Free the palette */ 
    1252         free(pLogPal); 
     1252        mem_free(pLogPal); 
    12531253 
    12541254        /* Main window */