Skip to content

Commit

Permalink
Initialize Conf object members (issue #125)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Aug 2, 2014
1 parent f2509e3 commit a090c73
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src-cpp/rdkafkacpp_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@ class MessageImpl : public Message {
class ConfImpl : public Conf {
public:
ConfImpl()
:dr_cb_(NULL),
event_cb_(NULL),
socket_cb_(NULL),
open_cb_(NULL),
partitioner_cb_(NULL){}
:dr_cb_(NULL),
event_cb_(NULL),
socket_cb_(NULL),
open_cb_(NULL),
partitioner_cb_(NULL),
rk_conf_(NULL),
rkt_conf_(NULL){}
~ConfImpl () {
if (rk_conf_)
rd_kafka_conf_destroy(rk_conf_);
Expand Down

0 comments on commit a090c73

Please sign in to comment.