VirtualBox

Changeset 35050 in vbox


Ignore:
Timestamp:
Dec 14, 2010 3:55:07 AM (14 years ago)
Author:
vboxsync
Message:

Audio: uses RTStrFree for strings allocated via RTStrDup.

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/audio_int.h

    r34906 r35050  
    4141#define qemu_free RTMemFree
    4242#define qemu_strdup RTStrDup
     43#define qemu_strfree RTStrFree
    4344
    4445struct audio_pcm_ops;
  • trunk/src/VBox/Devices/Audio/audio_template.h

    r13892 r35050  
    170170    err = glue (audio_pcm_sw_alloc_resources_, TYPE) (sw);
    171171    if (err) {
    172         qemu_free (sw->name);
     172        qemu_strfree (sw->name);
    173173        sw->name = NULL;
    174174    }
     
    180180    glue (audio_pcm_sw_free_resources_, TYPE) (sw);
    181181    if (sw->name) {
    182         qemu_free (sw->name);
     182        qemu_strfree (sw->name);
    183183        sw->name = NULL;
    184184    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette