Changeset 190 for trunk


Ignore:
Timestamp:
Jul 24, 2008, 3:46:23 PM (11 years ago)
Author:
cameron
Message:

File close in Byteplex destructor.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/byteplex.c

    r183 r190  
    2222const int SENTINEL_PACKS = 1;
    2323
     24Byteplex::~Byteplex() {
     25        if (infile != NULL) fclose(infile);
     26}
    2427
    2528
     
    555558Byteplex * Byteplex::ByteplexFactory(Entity_Info * e, unsigned char * buffer_bytes, int buffer_size) {
    556559        Byteplex * b = ByteplexFactory(e);
     560        b->infile = NULL;
    557561        memcpy(b->src_buffer, buffer_bytes, buffer_size);
    558562//printf("buffer_bytes = %s\n", buffer_bytes);
  • trunk/src/byteplex.h

    r169 r190  
    7373class Byteplex {
    7474public:
     75        ~Byteplex();
    7576        static Byteplex * ByteplexFactory(Entity_Info * e);
    7677        static Byteplex * ByteplexFactory(Entity_Info * e, FILE * inputfile);
Note: See TracChangeset for help on using the changeset viewer.