Ignore:
Timestamp:
Mar 22, 2008, 10:39:25 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of jmalloc and replace it with standard malloc. Modern operating systems certainly perform a lot better than this custom implementation, and we have superior tools (eg. valgrind) to debug and profile memory usage without interfering with the code itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jwindow.cpp

    r128 r129  
    394394    _name = NULL;
    395395    if(name)
    396         _name = strcpy((char *)jmalloc(strlen(name) + 1,
    397                                        "Jwindow::window name"), name);
     396        _name = strcpy((char *)malloc(strlen(name) + 1), name);
    398397    wm->add_window(this);
    399398}
     
    441440    _name = NULL;
    442441    if(name)
    443         _name = strcpy((char *)jmalloc(strlen(name) + 1,
    444                                        "Jwindow::window name"), name);
     442        _name = strcpy((char *)malloc(strlen(name) + 1), name);
    445443
    446444    wm->add_window(this);
     
    457455    delete inm;
    458456    if(_name)
    459         jfree(_name);
     457        free(_name);
    460458}
    461459
Note: See TracChangeset for help on using the changeset viewer.