diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 23:22:42 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 23:22:42 -0800 |
commit | 316f81119f24471882f2d394cd332bcc1312da4d (patch) | |
tree | e040a7a439e5566e3a0518f0cbb092e8a8b788b2 /kill.cpp | |
parent | 8d016040abaa60416dd1e3625b1727dcd84f3e79 (diff) |
Excised some more halloc
Diffstat (limited to 'kill.cpp')
-rw-r--r-- | kill.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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; } |