bugGNUstep - Bugs: bug #14022, Remove nil object (NSMapRemove) in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14022: Remove nil object (NSMapRemove) in SQLClient on Mac.

Submitted by:  -Deleted Account- <yjchen>
Submitted on:  Wed 03 Aug 2005 06:48:37 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 03 Aug 2005 07:06:22 AM UTC, comment #1:

Thanks ... I added the workaround for that bug in the apple Foundation.

Richard Frith-Macdonald <CaS>
Project Member
Wed 03 Aug 2005 06:48:37 AM UTC, original submission:

There is a bug I noticed while writing a SQLite bundle for SQLClient.
It crashes while trying to remove a nil object on Mac OSX.
Here is a patch.

      • SQLClient.m.orig Tue Aug 2 23:43:08 2005

--- SQLClient.m Tue Aug 2 23:39:02 2005
***************

      • 967,973 ****

[self disconnect];
}
RETAIN(self);
! NSMapRemove(cache, (void*)_name);
ASSIGNCOPY(_name, s);
ASSIGN(_client, [[NSProcessInfo processInfo] globallyUniqueString]);
NSMapInsert(cache, (void)_name, (void)self);
--- 967,974 ----
[self disconnect];
}
RETAIN(self);
! if (_name)
! NSMapRemove(cache, (void*)_name);
ASSIGNCOPY(_name, s);
ASSIGN(_client, [[NSProcessInfo processInfo] globallyUniqueString]);
NSMapInsert(cache, (void)_name, (void)self);

-Deleted Account- <yjchen>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 03 Aug 2005 07:06:22 AM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1