summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-12-27 16:22:21 +0000
committerdynaflash <[email protected]>2010-12-27 16:22:21 +0000
commit142fb7d3dd6dc1971a94995a977e95f4ce5d5a0f (patch)
treeede8c68bdd613b4c08989cc2acbbbf2cc58f00cb /macosx
parent79c9696ae4c1cbb17587f24804c970cc24b129c0 (diff)
MacGui: Free the source display name for the ui before re-allocating it when doing a queue edit rescan.
- Fixes a consistent crash when trying to edit a queue item. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3714 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 720e9e2ad..78d99280d 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -2687,8 +2687,10 @@ fWorkingCount = 0;
fqueueEditRescanItemNum = selectedQueueItem;
[self writeToActivityLog: "rescanQueueItemToMainWindow: Re-scanning queue item at index:%d",fqueueEditRescanItemNum];
applyQueueToScan = YES;
+ /* Make sure we release the display name before reassigning it */
+ [browsedSourceDisplayName release];
/* Set the browsedSourceDisplayName for showNewScan */
- browsedSourceDisplayName = [[QueueFileArray objectAtIndex:fqueueEditRescanItemNum] objectForKey:@"SourceName"];
+ browsedSourceDisplayName = [[[QueueFileArray objectAtIndex:fqueueEditRescanItemNum] objectForKey:@"SourceName"] retain];
[self performScan:scanPath scanTitleNum:scanTitleNum];
}