Remove unused "using" declarations.
[pulseview.git] / pv / data / decoderstack.cpp
index f393a1bb84dc06b7034235a88cb110b5879c96a9..4d9eb000135f86d23a73b5a90dd6104fdc28a7e1 100644 (file)
@@ -40,8 +40,6 @@ using std::make_pair;
 using std::max;
 using std::min;
 using std::list;
-using std::map;
-using std::pair;
 using std::shared_ptr;
 using std::make_shared;
 using std::vector;
@@ -317,8 +315,10 @@ void DecoderStack::decode_data(
                if (srd_session_send(session, i, chunk_end, chunk,
                                (chunk_end - i) * unit_size, unit_size) != SRD_OK) {
                        error_message_ = tr("Decoder reported an error");
+                       delete[] chunk;
                        break;
                }
+               delete[] chunk;
 
                {
                        lock_guard<mutex> lock(output_mutex_);