VirtualBox

Changeset 28316 in vbox for trunk/include


Ignore:
Timestamp:
Apr 14, 2010 6:01:39 PM (15 years ago)
Author:
vboxsync
Message:

com/string.h,Main: Removed Utf8Str::asOutParam() as it mixed allocators - COM/XPCOM allocates the returned param, while RTMemFree is used to free it -> bang.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r26753 r28316  
    547547    {
    548548        return RTStrToUInt32(m_psz);
    549     }
    550 
    551     /**
    552      * Intended to pass instances as out (|char **|) parameters to methods. Takes
    553      * the ownership of the returned data.
    554      *
    555      * @remarks    See ministring::jolt().
    556      */
    557     char **asOutParam()
    558     {
    559         cleanup();
    560         return &m_psz;
    561549    }
    562550
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