diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-23 09:23:29 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-23 09:23:29 +0100 |
commit | c33173cd5de81a9fb32757c3a3c662716f76b300 (patch) | |
tree | fbc033844241c9ca695c7c001030d649e7f44075 /src/platforms/px4_publisher.h | |
parent | da7ad9a3329db43144b5ca3e60c6c56d22fdc3d4 (diff) | |
download | px4-firmware-c33173cd5de81a9fb32757c3a3c662716f76b300.tar.gz px4-firmware-c33173cd5de81a9fb32757c3a3c662716f76b300.tar.bz2 px4-firmware-c33173cd5de81a9fb32757c3a3c662716f76b300.zip |
uorb pub: cleanup objects
Diffstat (limited to 'src/platforms/px4_publisher.h')
-rw-r--r-- | src/platforms/px4_publisher.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index a9e40e8d6..d9cd7a3c1 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 |