initialize range to ensure it does not ocntain garbage later

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@31628 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-11-18 16:47:25 +00:00
parent d27ac097b1
commit 2a4aa4f0b8
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,9 @@
* Framework/PCProject.m:
Fix memory leak.
* Modules/Editors/ProjectCenter/PCEditor.m:
Initialize range to ensure it does not contain garbage.
2010-11-16 German Arias <german@xelalug.org>
* Framework/PCFileManager.m: Allow open .project directories
to add files placed at project directory in AddFiles panel.

View file

@ -506,6 +506,7 @@
}
}
methodRange = NSMakeRange(0, 0);
enumerator = [parserMethods objectEnumerator];
while ((method = [enumerator nextObject]))
{
@ -928,6 +929,7 @@
NSLog(@"SCROLL to class: \"%@\"", className);
classNameRange = NSMakeRange(0, 0);
enumerator = [parserClasses objectEnumerator];
while ((class = [enumerator nextObject]))
{
@ -955,6 +957,7 @@
NSLog(@"SCROLL to method: \"%@\"", methodName);
methodNameRange = NSMakeRange(0, 0);
enumerator = [parserMethods objectEnumerator];
while ((method = [enumerator nextObject]))
{