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/input.hpp

    r124 r129  
    3232  void change_visual(image *new_visual);
    3333  virtual void remap(filter *f);
    34   virtual ~button() { if (text) jfree(text); }
     34  virtual ~button() { if (text) free(text); }
    3535  void push();
    3636  virtual char *read() { return (char *)&up; }
     
    8585  virtual void handle_event(event &ev, image *screen, InputManager *im);
    8686
    87   virtual ~text_field() { jfree(prompt); jfree(format); jfree(data); }
     87  virtual ~text_field() { free(prompt); free(format); free(data); }
    8888  virtual char *read();
    8989  void change_data(char const *new_data, int new_cursor,       // cursor==-1, does not change it.
     
    106106  virtual char *read() { return text; }
    107107  virtual int selectable() { return 0; }
    108   virtual ~info_field() { jfree(text); }
     108  virtual ~info_field() { free(text); }
    109109} ;
    110110
Note: See TracChangeset for help on using the changeset viewer.