use destroy instead of assigning nil, avoids warnings and make smore sense anyway

This commit is contained in:
Riccardo Mottola 2023-09-13 00:40:58 +02:00
parent a3117e5598
commit 88a0e1e390
4 changed files with 6 additions and 6 deletions

View file

@ -461,8 +461,8 @@ static GSAutocompleteWindow *gsWindow = nil;
if ( (flag) ||
(movement == NSCancelTextMovement) )
{
ASSIGN(_originalWord, nil);
ASSIGN(_words, nil);
DESTROY(_originalWord);
DESTROY(_words);
}
}

View file

@ -110,8 +110,8 @@ NSUnregisterServicesProvider(NSString *name)
object: listenerConnection];
DESTROY(listenerConnection);
}
ASSIGN(servicesProvider, nil);
ASSIGN(providerName, nil);
DESTROY(servicesProvider);
DESTROY(providerName);
}
/**

View file

@ -363,7 +363,7 @@ static NSMutableDictionary *units = nil;
}
else
{
ASSIGN(_markers, nil);
DESTROY(_markers);
}
[self setNeedsDisplay: YES];
}

View file

@ -577,7 +577,7 @@ selectCellWithString: (NSString*)title
else
{
ASSIGN (_directory, [path stringByAppendingPathComponent: title]);
ASSIGN (_fullFileName, nil);
DESTROY (_fullFileName);
}
[self _selectTextInColumn:column];