author | mickeyl <mickeyl> | 2006-05-04 08:54:33 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2006-05-04 08:54:33 (UTC) |
commit | b5d4d3425bc7f9d2518a15159f4a7b01071a68d7 (patch) (side-by-side diff) | |
tree | 2cb1b9f7051cd06123c36eb8b75a9b6b7e49db0f /core/obex/btobex.cpp | |
parent | 9e9148941974ce65fb733b14dd8bb15fe099ec2c (diff) | |
download | opie-b5d4d3425bc7f9d2518a15159f4a7b01071a68d7.zip opie-b5d4d3425bc7f9d2518a15159f4a7b01071a68d7.tar.gz opie-b5d4d3425bc7f9d2518a15159f4a7b01071a68d7.tar.bz2 |
destroys all child processes on the window closure. patch courtesy Dmitriy Korovkin
-rw-r--r-- | core/obex/btobex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/obex/btobex.cpp b/core/obex/btobex.cpp index b8556da..886f3dc 100644 --- a/core/obex/btobex.cpp +++ b/core/obex/btobex.cpp @@ -29,18 +29,17 @@ BtObex::BtObex( QObject *parent, const char* name ) connect( this, SIGNAL(error(int) ), // for recovering to receive SLOT(slotError() ) ); connect( this, SIGNAL(sent(bool) ), SLOT(slotError() ) ); btManager = NULL; }; BtObex::~BtObex() { - if (btManager) - delete btManager; + delete btManager; delete m_rec; delete m_send; } void BtObex::receive() { m_receive = true; m_outp = QString::null; m_rec = new OProcess(); |