From c33173cd5de81a9fb32757c3a3c662716f76b300 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Fri, 23 Jan 2015 09:23:29 +0100 Subject: [PATCH] uorb pub: cleanup objects --- src/platforms/px4_publisher.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index a9e40e8d67..d9cd7a3c19 100644 --- a/src/platforms/px4_publisher.h +++ b/src/platforms/px4_publisher.h @@ -136,7 +136,9 @@ public: _uorb_pub(new uORB::PublicationBase(T::handle())) {} - ~PublisherUORB() {}; + ~PublisherUORB() { + delete _uorb_pub; + }; /** Publishes msg * @param msg the message which is published to the topic