You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by gr...@apache.org on 2011/02/25 22:26:00 UTC

svn commit: r1074706 - in /incubator/etch/trunk/examples/helloworld/src/main/c: helloworld_client_main.c helloworld_server_impl.c

Author: grandyho
Date: Fri Feb 25 21:26:00 2011
New Revision: 1074706

URL: http://svn.apache.org/viewvc?rev=1074706&view=rev
Log:
ETCH-91 small fixes in helloworld example

Modified:
    incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_client_main.c
    incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_server_impl.c

Modified: incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_client_main.c
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_client_main.c?rev=1074706&r1=1074705&r2=1074706&view=diff
==============================================================================
--- incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_client_main.c (original)
+++ incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_client_main.c Fri Feb 25 21:26:00 2011
@@ -99,6 +99,7 @@ int main(int argc, char* argv[])
 
 
     printf("%S\n",result->v.valw);
+    etch_object_destroy(result);
     
     // wait for keypress
     waitkey();

Modified: incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_server_impl.c
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_server_impl.c?rev=1074706&r1=1074705&r2=1074706&view=diff
==============================================================================
--- incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_server_impl.c (original)
+++ incubator/etch/trunk/examples/helloworld/src/main/c/helloworld_server_impl.c Fri Feb 25 21:26:00 2011
@@ -107,5 +107,7 @@ etch_string* say_hello_impl(void* thisx,
   etch_string* ret = NULL;
   etch_snwprintf(retw, len, L"Hello %s", to_whom->name->v.valw);
   ret = new_stringw(retw);
+  etch_object_destroy(to_whom);
+  free(retw);
   return ret;
 }