diff options
author | Keith Packard <keithp@keithp.com> | 2009-07-18 00:44:01 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-07-18 00:44:01 -0700 |
commit | 5195fcfe239e430e1f9f11774c9a245c7b29dae9 (patch) | |
tree | 2dbf714919ef743355286b0c6961cdadc1496ecd | |
parent | 1e5e98bd8f5ea0bc15592de454e3629383462371 (diff) |
use g_source_destroy instead of free on serial object
-rw-r--r-- | aoview/aoview_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aoview/aoview_serial.c b/aoview/aoview_serial.c index f5142ea5..29038b79 100644 --- a/aoview/aoview_serial.c +++ b/aoview/aoview_serial.c @@ -234,7 +234,7 @@ aoview_serial_open(const char *tty) aoview_buf_init(&serial->out_buf); serial->fd = open (tty, O_RDWR | O_NONBLOCK); if (serial->fd < 0) { - free (serial); + g_source_destroy(&serial->source); return NULL; } tcgetattr(serial->fd, &termios); |