Subversion Repositories filter_foundry

Rev

Rev 496 | Rev 503 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 496 Rev 498
Line 88... Line 88...
88
                                        *q++ = CR;
88
                                        *q++ = CR;
89
                                        *q = 0;
89
                                        *q = 0;
90
                                        p = cat(p,outbuf);
90
                                        p = cat(p,outbuf);
91
                                }
91
                                }
92
                        else
92
                        else
93
                                p = cat(p,_strdup("(null expr)\r")); // this shouldn't happen
93
                                p = cat(p,(char*)("(null expr)\r")); // this shouldn't happen
94
                        *p++ = CR;
94
                        *p++ = CR;
95
                }
95
                }
96
 
96
 
97
//              *p = 0; dbg(start);
97
//              *p = 0; dbg(start);
98
 
98
 
Line 250... Line 250...
250
                                        expr[2] = tmp;
250
                                        expr[2] = tmp;
251
                                }
251
                                }
252
                        }
252
                        }
253
 
253
 
254
                        FSClose(r);
254
                        FSClose(r);
255
                }else reasonstr = FF_GetMsg_Cpy(MSG_CANNOT_OPEN_FILE_ID); // TODO: This leaks memory! Needs FF_GetMsg_Free()...
255
                }else reasonstr = FF_GetMsg_Cpy(MSG_CANNOT_OPEN_FILE_ID);
256
        else reasonstr = FF_GetMsg_Cpy(MSG_CANNOT_CREATE_FILE_ID); // TODO: This leaks memory! Needs FF_GetMsg_Free()...
256
        else reasonstr = FF_GetMsg_Cpy(MSG_CANNOT_CREATE_FILE_ID);
257
 
257
 
258
        if (!res) {
258
        if (!res) {
259
                alertuser_id(MSG_CANNOT_SAVE_SETTINGS_ID, reasonstr);
259
                alertuser_id(MSG_CANNOT_SAVE_SETTINGS_ID, reasonstr);
260
        }
260
        }
261
 
261
 
-
 
262
        if (reasonstr) FF_GetMsg_Free(reasonstr);
-
 
263
 
262
        return res;
264
        return res;
263
}
265
}