tianshanxuester / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

GDataServiceGoogleCalendar setUserAgent seems to produce a memory leak #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm currently using the Objective-C GData SDK (in the iphone environment) using 
the following 
libraries:

           GData Sources
                     Common
                     Calendar

When using the following code snippet, Leaks reports that there is a memory 
leak for 
NFCFString:

    GDataServiceGoogleCalendar *service = [[GDataServiceGoogleCalendar alloc] init];

    [service setUserAgent:@"MyCompany-CalendarHelloWorldMini-1.0"]; 

    [service release];

Original issue reported on code.google.com by e.tyle...@gmail.com on 24 Aug 2009 at 3:55

GoogleCodeExporter commented 9 years ago
I suspect you're seeing allocation of a static that happens just the first time 
a
service is created. You can't really test for leaks on a single alloc/release.  
Try
doing it at least 3 times.

Original comment by gregrobbins on 25 Aug 2009 at 10:14

GoogleCodeExporter commented 9 years ago
I've run the code snippet from a function several times, consecutively,  and 
Leaks consistently reports a memory 
leak every time I run the snippet.

Original comment by e.tyle...@gmail.com on 26 Aug 2009 at 12:17

GoogleCodeExporter commented 9 years ago
I'll examine this.

Original comment by gregrobbins on 26 Aug 2009 at 10:02

GoogleCodeExporter commented 9 years ago
I'm not reproducing this with version 1.9 (top-of-trunk) of the library. It may 
have been fixed incidentally since 
1.8 was released. Please reopen if you see this again.

Original comment by gregrobbins on 28 Oct 2009 at 10:45