VirtualBox

Ignore:
Timestamp:
Jul 8, 2010 6:22:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63526
Message:

IPRT: minor string fixes (use RTStrAlloc and friends instead of RTMemAlloc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/utf-16.cpp

    r28800 r30749  
    500500            fShouldFree = true;
    501501            cch = RT_MAX(cch, cchResult + 1);
    502             pszResult = (char *)RTMemAlloc(cch);
     502            pszResult = (char *)RTStrAlloc(cch);
    503503        }
    504504        if (pszResult)
     
    512512
    513513            if (fShouldFree)
    514                 RTMemFree(pszResult);
     514                RTStrFree(pszResult);
    515515        }
    516516        else
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