Excised some more halloc

This commit is contained in:
ridiculousfish
2012-01-29 23:22:42 -08:00
parent 8d016040ab
commit 316f81119f
10 changed files with 27 additions and 30 deletions

View File

@@ -52,15 +52,14 @@ static int has_xsel()
{
static int called=0;
static int res = 0;
if (!called) {
void *context = halloc(0, 0);
wchar_t *path = path_get_path( context, L"xsel" );
wchar_t *path = path_get_path( L"xsel" );
res = !!path;
halloc_free( context );
free(path);
called = 1;
}
}
return res;
}