Changeset 190 for trunk/src/byteplex.c


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

File close in Byteplex destructor.

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.