Unref Stream when freeing a IsoFile.
This commit is contained in:
parent
8edc9f2639
commit
6616eae76b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user