Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 628)
+++ trunk/BNC/bnc.pro	(revision 629)
@@ -2,6 +2,6 @@
 # Switch to debug configuration
 # -----------------------------
-CONFIG -= release
-CONFIG += debug
+### CONFIG -= release
+### CONFIG += debug
 
 DEFINES += NO_RTCM3_MAIN
Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 628)
+++ trunk/BNC/bncgetthread.cpp	(revision 629)
@@ -377,13 +377,4 @@
   // ------------------
   while (true) {
-
-    if (_decoder) {
-      QListIterator<p_obs> it(_decoder->_obsList);
-      while (it.hasNext()) {
-        delete it.next();
-      }
-      _decoder->_obsList.clear();
-    }
-
     try {
       if (_socket->state() != QAbstractSocket::ConnectedState) {
@@ -392,4 +383,10 @@
       }
 
+      QListIterator<p_obs> it(_decoder->_obsList);
+      while (it.hasNext()) {
+        delete it.next();
+      }
+      _decoder->_obsList.clear();
+
       _socket->waitForReadyRead(_timeOut);
       qint64 nBytes = _socket->bytesAvailable();
@@ -403,5 +400,4 @@
         delete [] data;
         
-
         QListIterator<p_obs> it(_decoder->_obsList);
         while (it.hasNext()) {
