aboutsummaryrefslogtreecommitdiffhomepage
path: root/kill.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-29 23:22:42 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-29 23:22:42 -0800
commit316f81119f24471882f2d394cd332bcc1312da4d (patch)
treee040a7a439e5566e3a0518f0cbb092e8a8b788b2 /kill.cpp
parent8d016040abaa60416dd1e3625b1727dcd84f3e79 (diff)
Excised some more halloc
Diffstat (limited to 'kill.cpp')
-rw-r--r--kill.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/kill.cpp b/kill.cpp
index 3cc94796..4f7b5bb7 100644
--- a/kill.cpp
+++ b/kill.cpp
@@ -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;
}