diff options
Diffstat (limited to '')
-rw-r--r-- | c++-qt/tests/echo/mainwnd.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c++-qt/tests/echo/mainwnd.cpp b/c++-qt/tests/echo/mainwnd.cpp index 4b90421..13c93a1 100644 --- a/c++-qt/tests/echo/mainwnd.cpp +++ b/c++-qt/tests/echo/mainwnd.cpp | |||
@@ -26,5 +26,11 @@ void MainWnd::newConnection() | |||
26 | void MainWnd::objectRead( Gats::Object *pObj ) | 26 | void MainWnd::objectRead( Gats::Object *pObj ) |
27 | { | 27 | { |
28 | ((Gats::GatsStream *)sender())->writeObject( pObj ); | 28 | ((Gats::GatsStream *)sender())->writeObject( pObj ); |
29 | |||
30 | Gats::Object *pCopy = pObj->clone(); | ||
29 | delete pObj; | 31 | delete pObj; |
32 | |||
33 | ((Gats::GatsStream *)sender())->writeObject( pCopy ); | ||
34 | |||
35 | delete pCopy; | ||
30 | } | 36 | } |