[Phonehome-commits] r98 - trunk/client/src

pamadio at garage.maemo.org pamadio at garage.maemo.org
Mon Oct 20 20:54:53 EEST 2008


Author: pamadio
Date: 2008-10-20 20:54:52 +0300 (Mon, 20 Oct 2008)
New Revision: 98

Modified:
   trunk/client/src/dsk_mgr.c
Log:
not feeing the soup session in the loop

Modified: trunk/client/src/dsk_mgr.c
===================================================================
--- trunk/client/src/dsk_mgr.c	2008-10-20 17:17:48 UTC (rev 97)
+++ trunk/client/src/dsk_mgr.c	2008-10-20 17:54:52 UTC (rev 98)
@@ -679,6 +679,7 @@
   //soup_session=soup_session_sync_new_with_options(SOUP_SESSION_MAX_CONNS,5);
   //soup_session=soup_session_sync_new();
   if(proxy_mode==CON_IC_PROXY_MODE_NONE) {
+    g_print("no proxy\n");
     soup_session=soup_session_sync_new();
   } else if (proxy_mode==CON_IC_PROXY_MODE_MANUAL){
     g_print("using a manual proxy:%s\n",soup_proxy_uri_string);
@@ -703,6 +704,7 @@
       msg = soup_xmlrpc_message_new (uri);
       if (!msg) {
 	g_print("Could not create web service request to '%s'\n", uri);
+	g_object_unref(soup_session);
 	break;
       }
       soup_xmlrpc_message_start_call(msg,"store_location");
@@ -734,6 +736,8 @@
       g_print("rpc_status=%i\n",rpc_status);
       if(rpc_status!=200){
 	g_print("Problem with XMLRPC communication\n");
+	g_object_unref(msg);
+	g_object_unref(soup_session);
 	break;
       }
 
@@ -741,6 +745,8 @@
       rpc_response=soup_xmlrpc_message_parse_response (SOUP_XMLRPC_MESSAGE (msg));
       if (!rpc_response) {
 	g_print("Could not parse XMLRPC response\n");
+	g_object_unref(msg);
+	g_object_unref(soup_session);
 	break;
       }
 
@@ -748,6 +754,9 @@
       value = soup_xmlrpc_response_get_value (rpc_response);
       if (!value) {
 	g_print("No response value in XMLRPC response\n");
+	g_object_unref(msg);
+	g_object_unref(rpc_response);
+	g_object_unref(soup_session);
 	break;
       }
 
@@ -772,9 +781,9 @@
       //g_print("___\n");
       new_head=next_head;
       g_object_unref(msg);
-      g_object_unref(soup_session);
+
     }
-
+  g_object_unref(soup_session);
 }
 
 
@@ -1165,7 +1174,7 @@
   //connection_available();
   //connection_available();
   //send_jpeg(NULL);
-  
+  send_gps_infos();  
   g_main_loop_run(mainloop);
   osso_deinitialize(osso_context);
 



More information about the Phonehome-commits mailing list