AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

iOS: Memory leak in - (BOOL)trackPageview:(NSString *)pageURL withError:(NSError **)error; call #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Mobile Tracking

Name of related library, if applicable (e.g. Android, iOS, Snippets, etc.):
iOS

Issue summary:
Provide a brief summary of the issue you're experiencing.
Every trackPageview call in iOS library shows a memory leak when the app is 
profiled using instruments

Steps to reproduce issue:
1. Create a view controller that calls trackPageview with some name
2. Profile the app and check for leaks in Instruments
3. Note that every page view call shows a leak

Expected output:
What do you expect to see after performing the above steps?
There should be no leak

Actual results:
What do you actually see after performing the above steps?

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

Original issue reported on code.google.com by mit...@gmail.com on 18 Oct 2011 at 11:00

GoogleCodeExporter commented 9 years ago
What version of the SDK are you using?

Original comment by nrho...@google.com on 19 Oct 2011 at 6:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am using 1.3

I can see that the call to trackPageview is incrementing the retain count for 
the pageURL parameter by 2

Original comment by chetanpu...@gmail.com on 19 Oct 2011 at 6:59

GoogleCodeExporter commented 9 years ago
Yes, the problem is with 1.3. in the method trackPageview

Original comment by mit...@gmail.com on 20 Oct 2011 at 3:17

GoogleCodeExporter commented 9 years ago
Workaround: Don't prepend your pageURL with a '/'.  One will be prepended for 
you by the analytics library, and it won't leak.

A fix will be available in the next version of the SDK.

Original comment by nrho...@google.com on 1 Nov 2011 at 4:48

GoogleCodeExporter commented 9 years ago
Fixed in 1.4 SDK

Original comment by nrho...@google.com on 18 Nov 2011 at 10:54

GoogleCodeExporter commented 9 years ago
It is fixed in 1.4 SDK, I just confirmed while using it on 
http://ccl5.com/?p=237

Original comment by ugb...@gmail.com on 11 Dec 2014 at 6:54

GoogleCodeExporter commented 9 years ago
are you wants to watch Complete Info about ICC Cricket World Cup 2015 Warm Up 
Matches Online?
Then [**Visit Here 
!**](http://spriant.com/icc-cricket-world-cup-2015-warm-match-schedule-3037.cms)

ICC World Cup Warm up matches, 2015
Feb 08 2015 - Feb 13 2015, Teams: India, Australia, South Africa, Sri Lanka, 
New Zealand, Zimbabwe, England, West Indies, Pakistan, Bangladesh, Ireland, 
Scotland, Afghanistan, United Arab Emirates.

Original comment by tvchaska...@gmail.com on 7 Feb 2015 at 11:36