winealsa: snd_card_get_name uses strdup (Valgrind). (3rd and last)

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Tue Jan 31 05:55:16 CST 2012


Hi,

Andrew Eikum updated ALSA's documentation http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=226a34ac09e5d9c08ab8845e4c2e3fbd7b64010b
Now the requirement to free() is documented.

If that patch gets rejected too, I'll stop wasting my time on this issue and
let some const&cast expert figure out how to make gcc happy.

The dilemma: "bla" ist const char*, but free() does not want a const.
Work-arounds off the net are us ugly as strdup("bla") or using 2 pointers to the same address.

Regards,
        Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winealsa-snd_card_get_name-uses-strdup-Valgrind.patch
Type: application/octet-stream
Size: 1885 bytes
Desc: 0001-winealsa-snd_card_get_name-uses-strdup-Valgrind.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120131/4cb4da3e/attachment.obj>


More information about the wine-patches mailing list