diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-14 14:24:34 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-05-14 14:24:34 +0200 |
commit | 0ff825e0e6fe5fc7238e3964d24779a07cb53518 (patch) | |
tree | 7b47a9fe58a09e12ed99fdfacc84fff198ce5ce1 /src/file.cc | |
parent | 29ae5ac36d4ffc520232ff393b2455130ec0227e (diff) |
Split miav server and client apart. Port client to Qt4. Replace libraw1994 with libiec61883. Add unit tests for multiplexer and fix some bugs in it.
Diffstat (limited to 'src/file.cc')
-rw-r--r-- | src/file.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/file.cc b/src/file.cc index 9279015..7c4725d 100644 --- a/src/file.cc +++ b/src/file.cc @@ -41,6 +41,14 @@ #include <netinet/in.h> #include <stdlib.h> +File::File(Info *i) +{ + info = i; + fd = 0; + savestate = NO_CHANGE; + filename = new char[1]; + extension = new char[1]; +} File::File(const char *fn, const char* ext, Info *i) { @@ -104,8 +112,8 @@ File::~File() break; } - delete filename; - delete extension; + delete[] filename; + delete[] extension; } int File::Move(char *destination) |