aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 0d766bff..21f774e5 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -4447,8 +4447,9 @@ static int64_t SPDatabaseDocumentInstanceCounter = 0;
*/
- (void)setFileURL:(NSURL *)theURL
{
- if (spfFileURL) SPClear(spfFileURL);
- spfFileURL = [theURL retain];
+ [theURL retain];
+ [spfFileURL release];
+ spfFileURL = theURL;
if ([parentWindowController selectedTableDocument] == self) {
if (spfFileURL && [spfFileURL isFileURL])
[parentWindow setRepresentedURL:spfFileURL];