Unref Stream when freeing a IsoFile.

This commit is contained in:
Vreixo Formoso 2007-12-03 21:53:20 +01:00
parent 8edc9f2639
commit 6616eae76b
1 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include "libisofs.h" #include "libisofs.h"
#include "node.h" #include "node.h"
#include "error.h" #include "error.h"
#include "stream.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -42,6 +43,12 @@ void iso_node_unref(IsoNode *node)
} }
} }
break; break;
case LIBISO_FILE:
{
IsoFile *file = (IsoFile*) node;
iso_stream_unref(file->stream);
}
break;
default: default:
/* TODO #00002 handle deletion of each kind of node */ /* TODO #00002 handle deletion of each kind of node */
break; break;