~ubuntu-branches/ubuntu/karmic/mhwaveedit/karmic

« back to all changes in this revision

Viewing changes to src/session.c

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2008-01-08 22:20:37 UTC
  • mfrom: (2.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080108222037-tsazhckl5vmc8yih
Tags: 1.4.14-2
Added desktop file (Closes: #457849), thanks to Marco Rodrigues

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
static int current_id = 0;
56
56
static gchar *current_filename;
 
57
static gchar *session_dir;
57
58
static EFILE *current_file;
58
59
static GList *session_list = NULL;
59
60
/* static EFILE *current_session = NULL; */
67
68
void session_init(int *argc, char **argv)
68
69
{
69
70
     int highest_id = 0;
70
 
     gchar *session_dir,*c,*p,*q;
 
71
     gchar *c,*p,*q;
71
72
     DIR *d;     
72
73
     struct dirent *de;
73
74
     int i,j,k,l,m,n;
198
199
     for (list=session_list; list!=NULL; list=list->next) {
199
200
          s = (struct session *) list->data;
200
201
          if (s->state != SESSION_SUSPENDED && s->datafiles == NULL) {
201
 
               if (s->logfile != NULL)
 
202
               if (s->logfile != NULL) {
202
203
                    xunlink(s->logfile);
 
204
                    g_free(s->logfile);
 
205
               }
203
206
               list2 = list->prev;
204
207
               session_list = g_list_remove(session_list, s);
 
208
               g_free(s);
205
209
               if (session_list == NULL) break;
206
210
               if (list2 != NULL) list = list2; else list = session_list;
207
211
          }