summaryrefslogtreecommitdiff
path: root/src/encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoder.cc')
-rw-r--r--src/encoder.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/encoder.cc b/src/encoder.cc
index 08b587d..1664588 100644
--- a/src/encoder.cc
+++ b/src/encoder.cc
@@ -93,9 +93,8 @@ void Encoder::encode()
if(shoot_request != shoot_value) shoot_value = shoot_request;
n->sendPackage(&h, frame->data, frame->size);
-
- delete frame;
}
+ if(frame) delete frame;
}
// pthread_exit(NULL);
}