diff options
Diffstat (limited to 'src/spiceqxl_main_loop.c')
-rw-r--r-- | src/spiceqxl_main_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spiceqxl_main_loop.c b/src/spiceqxl_main_loop.c index af20a5a..0213693 100644 --- a/src/spiceqxl_main_loop.c +++ b/src/spiceqxl_main_loop.c @@ -209,7 +209,7 @@ int watch_count = 0; static SpiceWatch *watch_add(int fd, int event_mask, SpiceWatchFunc func, void *opaque) { - SpiceWatch *watch = malloc(sizeof(SpiceWatch)); + SpiceWatch *watch = xnfalloc(sizeof(SpiceWatch)); DPRINTF(0, "adding %p, fd=%d at %d", watch, fd, watch_count); @@ -381,7 +381,7 @@ static int watch_update_mask_internal(SpiceWatch *watch, int event_mask) static SpiceWatch *watch_add(int fd, int event_mask, SpiceWatchFunc func, void *opaque) { - SpiceWatch *watch = malloc(sizeof(SpiceWatch)); + SpiceWatch *watch = xnfalloc(sizeof(SpiceWatch)); DPRINTF(0, "adding %p, fd=%d", watch, fd); |