Discussion:
Mac OS X Memory Leak
Gerhard Mueller
2014-01-24 16:23:38 UTC
Permalink
<Loading Image...>
Xcode 5.0.2 running with Mavericks shows me a memory leak of 96 bytes in
line 83 of src/osx/core/stdpaths_cf.cpp
Any hints?
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Stefan Csomor
2014-01-24 19:29:15 UTC
Permalink
Hi Gerhard
Post by Gerhard Mueller
<https://lh6.googleusercontent.com/-zU1inqAIQlA/UuKTUTO2PFI/AAAAAAAAADE/qF
FAuWgU3pU/s1600/MemoryLeak.png>
Xcode 5.0.2 running with Mavericks shows me a memory leak of 96 bytes in
line 83 of src/osx/core/stdpaths_cf.cpp
Any hints?
good catch, thanks, for two reasons

- there was a change in this routine in order to use NormalizedC string
which in this case lead to subtle change in behavior leading to the leak
- I've copied my NormalizationC snippet from another source file but
changed the variable name at a wrong place, so essentially this method did
NOTHING :-( embarrassing ..

trunk will be fixed in a few min, I'll backport that as well to 3.0

Thanks,

Stefan
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Gerhard Mueller
2014-01-25 09:59:58 UTC
Permalink
Hallo Stefan,

thank you for your fast fix.

Gerhard
Post by Stefan Csomor
Hi Gerhard
Post by Gerhard Mueller
<
https://lh6.googleusercontent.com/-zU1inqAIQlA/UuKTUTO2PFI/AAAAAAAAADE/qF
Post by Gerhard Mueller
FAuWgU3pU/s1600/MemoryLeak.png>
Xcode 5.0.2 running with Mavericks shows me a memory leak of 96 bytes in
line 83 of src/osx/core/stdpaths_cf.cpp
Any hints?
good catch, thanks, for two reasons
- there was a change in this routine in order to use NormalizedC string
which in this case lead to subtle change in behavior leading to the leak
- I've copied my NormalizationC snippet from another source file but
changed the variable name at a wrong place, so essentially this method did
NOTHING :-( embarrassing ..
trunk will be fixed in a few min, I'll backport that as well to 3.0
Thanks,
Stefan
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...