Diffstat (limited to 'noncore/apps/opie-console/io_bt.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_bt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/io_bt.cpp b/noncore/apps/opie-console/io_bt.cpp index 4486eea..8dd8151 100644 --- a/noncore/apps/opie-console/io_bt.cpp +++ b/noncore/apps/opie-console/io_bt.cpp @@ -26,2 +26,3 @@ void IOBt::close() { bool IOBt::open() { + bool ret = false; @@ -41,3 +42,3 @@ bool IOBt::open() { if ( m_attach->start() ) { - IOSerial::open(); + ret = IOSerial::open(); } else { @@ -51,4 +52,5 @@ bool IOBt::open() { - IOSerial::open(); + ret =IOSerial::open(); } + return ret; } @@ -76,2 +78,3 @@ void IOBt::slotExited( OProcess* proc ){ close(); + delete proc; } |