summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits
diff options
context:
space:
mode:
Diffstat (limited to 'libvxi11client/perlbits')
-rw-r--r--libvxi11client/perlbits/perlglue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvxi11client/perlbits/perlglue.c b/libvxi11client/perlbits/perlglue.c
index 902f915..dec97c2 100644
--- a/libvxi11client/perlbits/perlglue.c
+++ b/libvxi11client/perlbits/perlglue.c
@@ -43,6 +43,7 @@ VXI11Context* glue_open(char* address, char* device) {
int glue_start_interrupt_server() {
interruptqueue = g_async_queue_new();
+ g_async_queue_ref(interruptqueue);
return vxi11_start_interrupt_server(interruptcallback);
}
@@ -54,7 +55,7 @@ int glue_stop_interrupt_server() {
freeevent(event);
}
freelast();
- g_free(interruptqueue);
+ g_async_queue_unref(interruptqueue);
return ret;
}