| |
Changeset 117
- Timestamp:
- 02/07/08 04:14:29
(1 year ago)
- Author:
- mike
- Message:
[fix] QDocument removed 2 memory leaks
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r116 |
r117 |
|
| 54 | 54 | cpuUsage = 0.0; |
|---|
| 55 | 55 | ideActivity = FALSE; |
|---|
| 56 | | driveFileNames = [[NSMutableArray arrayWithObjects:@"", @"", @"", nil] retain]; |
|---|
| | 56 | driveFileNames = [[NSMutableArray alloc] initWithObjects:@"", @"", @"", nil]; |
|---|
| 57 | 57 | absolute_enabled = FALSE; |
|---|
| 58 | 58 | VMSupportsSnapshots = FALSE; |
|---|
| … | … | |
| 159 | 159 | if (fileTypes) |
|---|
| 160 | 160 | [fileTypes release]; |
|---|
| | 161 | if (driveFileNames) |
|---|
| | 162 | [driveFileNames release]; |
|---|
| 161 | 163 | if([[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"/tmp/qDocument_%D.vga", uniqueDocumentID]]) |
|---|
| 162 | 164 | [[NSFileManager defaultManager] removeFileAtPath:[NSString stringWithFormat:@"/tmp/qDocument_%D.vga", uniqueDocumentID] handler: nil]; |
|---|
| … | … | |
| 283 | 285 | (*callback)(canCloseDocumentContext->delegate, canCloseDocumentContext->shouldCloseSelector, self, canCloseDocumentClose, canCloseDocumentContext->contextInfo); |
|---|
| 284 | 286 | } |
|---|
| | 287 | free(canCloseDocumentContext); |
|---|
| 285 | 288 | } |
|---|
| 286 | 289 | |
|---|
| r116 |
r117 |
|
| 101 | 101 | NSMutableString *argument; |
|---|
| 102 | 102 | NSString *option; |
|---|
| 103 | | NSString *name; |
|---|
| 104 | | int nameIndex; |
|---|
| 105 | 103 | |
|---|
| 106 | 104 | data = [NSData dataWithContentsOfFile:[NSString stringWithFormat:@"%@/configuration.plist", filename]]; |
|---|
Download in other formats:
| |