~ubuntu-branches/debian/lenny/corewars/lenny

« back to all changes in this revision

Viewing changes to src/main-gui.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2002-11-01 00:29:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20021101002955-d37fhgce7agioojj
Tags: 0.9.13-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "options.h"
39
39
#include "tournament.h"
40
40
#include "dirbrowser.h"
 
41
#include "preferences.h"
41
42
 
42
43
GtkWidget *menu_file_start;
43
44
GtkWidget *menu_file_pause;
127
128
#if defined(HAVE_GET_CURRENT_DIR_NAME)
128
129
      dir = get_current_dir_name();
129
130
#elif defined(PATH_MAX)
130
 
      dir = (char*)malloc(PATH_MAX);
 
131
      dir = (char*)malloc(PATH_MAX);   /* FIXME: We leak memory. */
131
132
      if ( !dir ) fprintf(stderr,"Cannot allocate memory");
132
133
      getcwd (dir, PATH_MAX);
133
134
#else