minor cleanups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32234 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-19 19:42:42 +00:00
parent b9b50a9fef
commit 474a12b708
16 changed files with 93 additions and 74 deletions

View file

@ -207,10 +207,10 @@ OutputDebugStringW(L"");
{
if (ptr != buf)
{
objc_free(ptr);
free(ptr);
}
max += 1024;
ptr = objc_malloc(max);
ptr = malloc(max);
len = max;
rc = RegQueryValueExW(
key,
@ -224,7 +224,7 @@ OutputDebugStringW(L"");
{
if (ptr != buf)
{
objc_free(ptr);
free(ptr);
}
return nil;
}
@ -232,7 +232,7 @@ OutputDebugStringW(L"");
mailslotName = [NSString stringWithUTF8String: (const char *) ptr];
if (ptr != buf)
{
objc_free(ptr);
free(ptr);
}
/*