Changeset 3537
- Timestamp:
- 08/15/08 21:00:22 (4 months ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
opensync/client/opensync_client.c (modified) (3 diffs)
-
opensync/client/opensync_client_proxy.c (modified) (6 diffs)
-
opensync/ipc/opensync_queue.c (modified) (1 diff)
-
opensync/ipc/opensync_serializer.c (modified) (1 diff)
-
opensync/merger/opensync_merger.c (modified) (1 diff)
-
opensync/opensync_xml.c (modified) (1 diff)
-
tools/osyncplugin.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/opensync/client/opensync_client.c
r3508 r3537 115 115 if (!osync_error_is_set(&error)) { 116 116 reply = osync_message_new_reply(message, &locerror); 117 if (!reply) 118 goto error; 119 117 120 //Send connect specific reply data 118 121 osync_message_write_int(reply, slowsync); … … 302 305 if (!osync_error_is_set(&error)) { 303 306 reply = osync_message_new_reply(message, &locerror); 307 if (!reply) 308 goto error; 309 304 310 //Send get_changes specific reply data 305 311 osync_message_write_string(reply, osync_change_get_uid(baton->change)); … … 346 352 if (!osync_error_is_set(&error)) { 347 353 reply = osync_message_new_reply(message, &locerror); 354 if (!reply) 355 goto error; 356 348 357 //Send get_changes specific reply data 349 358 osync_message_write_string(reply, osync_change_get_uid(baton->change)); -
trunk/opensync/client/opensync_client_proxy.c
r3508 r3537 1276 1276 return TRUE; 1277 1277 1278 error_free_message: 1279 osync_message_unref(message); 1278 1280 error_free_context: 1279 1281 g_free(ctx); 1280 error_free_message:1281 osync_message_unref(message);1282 1282 error: 1283 1283 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); … … 1320 1320 return TRUE; 1321 1321 1322 error_free_message: 1323 osync_message_unref(message); 1322 1324 error_free_context: 1323 1325 g_free(ctx); 1324 error_free_message:1325 osync_message_unref(message);1326 1326 error: 1327 1327 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); … … 1364 1364 return TRUE; 1365 1365 1366 error_free_message: 1367 osync_message_unref(message); 1366 1368 error_free_context: 1367 1369 g_free(ctx); 1368 error_free_message:1369 osync_message_unref(message);1370 1370 error: 1371 1371 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); … … 1410 1410 return TRUE; 1411 1411 1412 error_free_message: 1413 osync_message_unref(message); 1412 1414 error_free_context: 1413 1415 g_free(ctx); 1414 error_free_message:1415 osync_message_unref(message);1416 1416 error: 1417 1417 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); … … 1454 1454 return TRUE; 1455 1455 1456 error_free_message: 1457 osync_message_unref(message); 1456 1458 error_free_context: 1457 1459 g_free(ctx); 1458 error_free_message:1459 osync_message_unref(message);1460 1460 error: 1461 1461 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); … … 1498 1498 return TRUE; 1499 1499 1500 error_free_message: 1501 osync_message_unref(message); 1500 1502 error_free_context: 1501 1503 g_free(ctx); 1502 error_free_message:1503 osync_message_unref(message);1504 1504 error: 1505 1505 osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); -
trunk/opensync/ipc/opensync_queue.c
r3305 r3537 137 137 138 138 pending->callback(errormsg, pending->user_data); 139 osync_message_unref(errormsg); 139 if (errormsg != NULL) 140 osync_message_unref(errormsg); 140 141 141 142 // TODO: Refcounting for OSyncPendingMessage -
trunk/opensync/ipc/opensync_serializer.c
r3506 r3537 1165 1165 1166 1166 *auth = osync_plugin_authentication_new(error); 1167 if (! auth)1167 if (!*auth) 1168 1168 goto error; 1169 1169 -
trunk/opensync/merger/opensync_merger.c
r3365 r3537 211 211 for(tmp=list; tmp != NULL; tmp = g_slist_next(tmp)) { 212 212 xmlUnlinkNode(tmp->data); 213 xmlDOMWrapAdoptNode(NULL, ((xmlNodePtr)tmp->data)->doc, tmp->data, new_node->doc, new_par_node, 0);214 //xmlAddChild(new_par_node, tmp->data);215 213 } 216 214 }else{ -
trunk/opensync/opensync_xml.c
r3207 r3537 217 217 goto next; 218 218 } 219 if (!leftcontent || !rightcontent) { 220 osync_trace(TRACE_EXIT, "%s: One is empty", __func__); 221 return FALSE; 222 } 219 223 if (!strcmp(leftcontent, rightcontent)) { 220 224 g_free(rightcontent); 221 225 goto next; 222 }223 if (!leftcontent || !rightcontent) {224 osync_trace(TRACE_EXIT, "%s: One is empty", __func__);225 return FALSE;226 226 } 227 227 g_free(rightcontent); -
trunk/tools/osyncplugin.c
r3526 r3537 1058 1058 assert(cmd); 1059 1059 1060 if (cmd->cmd != CMD_INITIALIZE && *plugin_data == NULL) 1060 if (cmd->cmd != CMD_INITIALIZE && *plugin_data == NULL) { 1061 1061 fprintf(stderr, "WARNING: Got Plugin initialized? plugin_data is NULL.\n"); 1062 goto error; 1063 } 1062 1064 1063 1065
