diff options
| author | 2002-11-18 07:40:21 +0000 | |
|---|---|---|
| committer | 2002-11-18 07:40:21 +0000 | |
| commit | b9de121a85abef26f07da8d55530964eb9797f17 (patch) | |
| tree | 7321424534f5afcc1cf3671a9afff9dc567aa443 /src/main.c | |
| parent | added missing arm.c from weihs branch (diff) | |
merged rawiso branch
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@93 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -149,6 +149,7 @@ struct raw1394_handle *raw1394_new_handle(void) handle->tag_handler = tag_handler_default; handle->arm_tag_handler = arm_tag_handler_default; memset(handle->iso_handler, 0, sizeof(handle->iso_handler)); + handle->iso_buffer = NULL; return handle; } @@ -162,10 +163,13 @@ struct raw1394_handle *raw1394_new_handle(void) **/ void raw1394_destroy_handle(struct raw1394_handle *handle) { - if (handle) { - close(handle->fd); - free(handle); - } + if (handle) { + if(handle->iso_buffer) { + raw1394_iso_shutdown(handle); + } + close(handle->fd); + free(handle); + } } /** |
