From 0ffc2529d674a71a794effaa0975364c219f9115 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 26 Apr 2005 09:43:41 +0000 Subject: *** empty log message *** --- src/encoder.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3