Ignore:
Timestamp:
Mar 22, 2008, 10:39:25 AM (15 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/status.cpp

    r124 r129  
    2424  int last_update;
    2525  text_status_node(char const *Name, visual_object *Show, text_status_node *Next)
    26   { name=strcpy((char *)jmalloc(strlen(Name)+1,"status name"),Name);
     26  { name=strcpy((char *)malloc(strlen(Name)+1),Name);
    2727    show=Show;
    2828    next=Next;
    2929    last_update=0;
    3030  }
    31   ~text_status_node() { jfree(name); if (show) delete show; }
     31  ~text_status_node() { free(name); if (show) delete show; }
    3232} ;
    3333
Note: See TracChangeset for help on using the changeset viewer.