This forum has been archived. All content is frozen. Please use KDE Discuss instead.

phonon. memory leak

Tags: None
(comma "," separated)
crackedmind
Registered Member
Posts
1
Karma
0

phonon. memory leak

Mon Feb 02, 2009 2:15 am
Sorry, if i wrote to wrong subforum.

I am using phonon (windows vista, ds9 backend, MS VC++ 2008 Express Edition) and get memory leak :(

Code: Select all
QString mp = "F:/sounds/" + filename;
_CrtMemState _state, _state2, _s3;
_CrtMemCheckpoint(&_state);

_music->setCurrentSource(mp);

_CrtMemCheckpoint(&_state2);

_CrtMemDifference(&_s3, &_state, &_state2);
_CrtMemDumpStatistics(&_s3);
_CrtMemDumpAllObjectsSince (&_state);

_music->play();


Memory dump:
Code: Select all
0 bytes in 0 Free Blocks.
296 bytes in 7 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
0 bytes in 0 Client Blocks.
Largest number used: 0 bytes.
Total allocations: 4086 bytes.
Dumping objects ->
{218294} normal block at 0x00F34898, 40 bytes long.
 Data:  00 00 00 00 04 00 CD CD E8 75 4D 01 00 00 00 00
{218293} normal block at 0x00F34C60, 40 bytes long.
 Data:  01 00 00 00 05 00 00 00 01 00 00 00 04 00 00 00
{218292} normal block at 0x033B6A60, 66 bytes long.
 Data:  01 00 00 00 17 00 00 00 17 00 00 00 72 6A 3B 03
{218290} normal block at 0x00F34840, 40 bytes long.
 Data:  01 00 00 00 03 00 CD CD A8 4D 4D 01 00 00 00 00
{218287} normal block at 0x00EE4D30, 12 bytes long.
 Data:  50 A4 F3 00 B8 B0 F3 00 B8 B0 F3 00
{218274} normal block at 0x00F346E0, 40 bytes long.
 Data:  02 00 00 00 02 00 CD CD A8 4D 4D 01 00 00 00 00
{218270} normal block at 0x02FD2BD0, 128 bytes long.
 Data:  01 00 00 00 36 00 00 00 18 00 00 00 E2 2B FD 02
{218267} normal block at 0x0341DB38, 30 bytes long.
 Data:  01 00 00 00 05 00 00 00 05 00 00 00 4A DB 41 03
{218266} normal block at 0x030FD2D0, 28 bytes long.
 Data:  01 00 00 00 04 00 00 00 04 00 00 00 E2 D2 0F 03
{218265} normal block at 0x00F41AB0, 88 bytes long.
 Data:  01 00 00 00 D0 D2 0F 03 20 16 30 67 20 16 30 67
{218217} normal block at 0x0339FF10, 40 bytes long.
 Data:  30 5A 04 10 02 00 00 00 00 00 00 00 B0 1A F4 00
Object dump complete.


I can do something wrong? Or this is phonon bug?

Last edited by crackedmind on Mon Feb 02, 2009 2:16 am, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: phonon. memory leak

Mon Feb 02, 2009 9:02 am
You might wish to report this to the appropriate mailing list, at list of which is available at mail.kde.org.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
pinotree
KDE Developer
Posts
222
Karma
7
OS

RE: phonon. memory leak

Mon Feb 02, 2009 8:33 pm
Please post the whole code and not just a bare snippet, otherwise it is basically impossible to say whether you are not freeing something yourself or there's a leak.


Pino Toscano


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell