]> code.citadel.org Git - citadel.git/commitdiff
* Fixed sample client code to shut down _correctly_. (...Rather than just
authorBrian <brian@uncensored.citadel.org>
Tue, 12 Jun 2001 14:34:06 +0000 (14:34 +0000)
committerBrian <brian@uncensored.citadel.org>
Tue, 12 Jun 2001 14:34:06 +0000 (14:34 +0000)
  quit without free()ing memory...)

libCxClient/ChangeLog
libCxClient/src/testlib.cpp

index f7263424f02039b4eb3efab038b3ae2856815b67..14024899a5146af36a8ae72c82fb73fad6fa6bdc 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 1.13  2001/06/12 14:34:06  brian
+* Fixed sample client code to shut down _correctly_.  (...Rather than just
+  quit without free()ing memory...)
+
 Revision 1.12  2001/06/12 11:48:54  brian
 * Working on cleaning up code.  There were LOTS of missing free() calls.
 Boy, was I lazy...  :)
@@ -47,3 +51,4 @@ Revision 1.3  2001/02/07 22:42:24  brian
 
 Revision 1.2  2001/02/07 22:41:51  brian
 * Updated ChangeLog to conform to Citadel/UX standards (kinda)  :)
+
index d7d4da2bc0a5669e9e3a8040ea63b6791ced44c7..ebb55d5b51089c24694fbf786b70102fadc954bd 100644 (file)
@@ -51,10 +51,12 @@ int         hndl;
 
                printf("Logging in\n");
                if(user_info = CxUsAuth(hndl, NULL, NULL)) {
+                       printf("FRE\n");
                        free(user_info);
                        user_info = 0;
 
                        room_info = CxRmGoto(hndl, "_BASEROOM_",0);
+                       printf("FRE\n");
                        free(room_info);
                        room_info = 0;
 
@@ -74,6 +76,7 @@ int           hndl;
                }
 
                CxClCbShutdown();
+               CxClDelete( hndl );
 
        } else {
                printf("Unable to connect to '%s'!\n", argv[1]);