From 94878530c26606b5b1d83d9dfb154e3b5e6e823a Mon Sep 17 00:00:00 2001
From: Thomas Habets <thomas@habets.se>
Date: Sun, 22 Mar 2020 17:57:59 +0000
Subject: blocks/udp_source: Remove manual memory management for buffers

---
 gr-blocks/lib/udp_source_impl.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'gr-blocks/lib/udp_source_impl.h')

diff --git a/gr-blocks/lib/udp_source_impl.h b/gr-blocks/lib/udp_source_impl.h
index 36d4e2b199..418a19b37d 100644
--- a/gr-blocks/lib/udp_source_impl.h
+++ b/gr-blocks/lib/udp_source_impl.h
@@ -23,11 +23,11 @@ class udp_source_impl : public udp_source
 {
 private:
     const size_t d_itemsize;
-    int d_payload_size; // maximum transmission unit (packet length)
-    const bool d_eof;   // look for an EOF signal
-    bool d_connected;   // are we connected?
-    char* d_rxbuf;      // get UDP buffer items
-    char* d_residbuf;   // hold buffer between calls
+    int d_payload_size;           // maximum transmission unit (packet length)
+    const bool d_eof;             // look for an EOF signal
+    bool d_connected;             // are we connected?
+    std::vector<char> d_rxbuf;    // get UDP buffer items
+    std::vector<char> d_residbuf; // hold buffer between calls
     ssize_t d_residual; // hold information about number of bytes stored in residbuf
     ssize_t d_sent;     // track how much of d_residbuf we've outputted
 
-- 
cgit v1.2.3