Unref Stream when freeing a IsoFile.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent 8edc9f2639
commit 6616eae76b
  1. 7
      src/node.c

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

Loading…
Cancel
Save