Mercurial > dwindows
comparison mac/dw.m @ 1383:ead81c3d9e4e
Thought I was fixing a memory leak but I was seeing the {} wrong.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 25 Nov 2011 17:51:49 +0000 |
parents | 3ba4853d5b78 |
children | 156e32814c83 |
comparison
equal
deleted
inserted
replaced
1382:3eedfd4f7c5d | 1383:ead81c3d9e4e |
---|---|
9633 strncpy(pathbuf, pathcopy, (size_t)(pos - pathcopy)); | 9633 strncpy(pathbuf, pathcopy, (size_t)(pos - pathcopy)); |
9634 chdir(pathbuf); | 9634 chdir(pathbuf); |
9635 } | 9635 } |
9636 } | 9636 } |
9637 } | 9637 } |
9638 } | 9638 if(pathcopy) |
9639 if(pathcopy) | 9639 free(pathcopy); |
9640 free(pathcopy); | 9640 } |
9641 | 9641 |
9642 /* Just in case we can't obtain a path */ | 9642 /* Just in case we can't obtain a path */ |
9643 if(!_dw_bundle_path[0]) | 9643 if(!_dw_bundle_path[0]) |
9644 getcwd(_dw_bundle_path, PATH_MAX); | 9644 getcwd(_dw_bundle_path, PATH_MAX); |
9645 | 9645 |