| 37424:04cf8cbe44d8 | 37425:5061721fd98f |
|---|---|
| 239 } | 239 } |
| 240 | 240 |
| 241 nm_release_conference(conference); | 241 nm_release_conference(conference); |
| 242 } | 242 } |
| 243 | 243 |
| 244 if (msg) | 244 g_free(msg); |
| 245 g_free(msg); | 245 g_free(nortf); |
| 246 | 246 g_free(guid); |
| 247 if (nortf) | |
| 248 g_free(nortf); | |
| 249 | |
| 250 if (guid) | |
| 251 g_free(guid); | |
| 252 | 247 |
| 253 return rc; | 248 return rc; |
| 254 } | 249 } |
| 255 | 250 |
| 256 /* Read the invite event, set up the event object, and | 251 /* Read the invite event, set up the event object, and |
| 321 nm_release_conference(conference); | 316 nm_release_conference(conference); |
| 322 | 317 |
| 323 } | 318 } |
| 324 } | 319 } |
| 325 | 320 |
| 326 if (msg) | 321 g_free(msg); |
| 327 g_free(msg); | 322 g_free(guid); |
| 328 | |
| 329 if (guid) | |
| 330 g_free(guid); | |
| 331 | 323 |
| 332 return rc; | 324 return rc; |
| 333 } | 325 } |
| 334 | 326 |
| 335 /* Read the invite notify event, set up the event object, and | 327 /* Read the invite notify event, set up the event object, and |
| 379 } else { | 371 } else { |
| 380 rc = NMERR_CONFERENCE_NOT_FOUND; | 372 rc = NMERR_CONFERENCE_NOT_FOUND; |
| 381 } | 373 } |
| 382 | 374 |
| 383 | 375 |
| 384 if (guid) | 376 g_free(guid); |
| 385 g_free(guid); | |
| 386 | 377 |
| 387 return rc; | 378 return rc; |
| 388 } | 379 } |
| 389 | 380 |
| 390 /* Read the conference reject event and set up the event object */ | 381 /* Read the conference reject event and set up the event object */ |
| 415 } else { | 406 } else { |
| 416 rc = NMERR_CONFERENCE_NOT_FOUND; | 407 rc = NMERR_CONFERENCE_NOT_FOUND; |
| 417 } | 408 } |
| 418 } | 409 } |
| 419 | 410 |
| 420 if (guid) | 411 g_free(guid); |
| 421 g_free(guid); | |
| 422 | 412 |
| 423 return rc; | 413 return rc; |
| 424 } | 414 } |
| 425 | 415 |
| 426 /* Read the conference left event, set up the event object, and | 416 /* Read the conference left event, set up the event object, and |
| 466 } else { | 456 } else { |
| 467 rc = NMERR_CONFERENCE_NOT_FOUND; | 457 rc = NMERR_CONFERENCE_NOT_FOUND; |
| 468 } | 458 } |
| 469 } | 459 } |
| 470 | 460 |
| 471 if (guid) | 461 g_free(guid); |
| 472 g_free(guid); | |
| 473 | 462 |
| 474 return rc; | 463 return rc; |
| 475 } | 464 } |
| 476 | 465 |
| 477 /* Read the conference closed, set up the event object, and | 466 /* Read the conference closed, set up the event object, and |
| 505 } else { | 494 } else { |
| 506 rc = NMERR_CONFERENCE_NOT_FOUND; | 495 rc = NMERR_CONFERENCE_NOT_FOUND; |
| 507 } | 496 } |
| 508 } | 497 } |
| 509 | 498 |
| 510 if (guid) | 499 g_free(guid); |
| 511 g_free(guid); | |
| 512 | 500 |
| 513 return rc; | 501 return rc; |
| 514 } | 502 } |
| 515 | 503 |
| 516 /* Read the conference joined event, set up the event object, and | 504 /* Read the conference joined event, set up the event object, and |
| 567 } else { | 555 } else { |
| 568 rc = NMERR_CONFERENCE_NOT_FOUND; | 556 rc = NMERR_CONFERENCE_NOT_FOUND; |
| 569 } | 557 } |
| 570 } | 558 } |
| 571 | 559 |
| 572 if (guid) | 560 g_free(guid); |
| 573 g_free(guid); | |
| 574 | 561 |
| 575 return rc; | 562 return rc; |
| 576 } | 563 } |
| 577 | 564 |
| 578 /* Read the typing event and set up the event object */ | 565 /* Read the typing event and set up the event object */ |
| 603 } else { | 590 } else { |
| 604 rc = NMERR_CONFERENCE_NOT_FOUND; | 591 rc = NMERR_CONFERENCE_NOT_FOUND; |
| 605 } | 592 } |
| 606 } | 593 } |
| 607 | 594 |
| 608 if (guid) | 595 g_free(guid); |
| 609 g_free(guid); | |
| 610 | 596 |
| 611 return rc; | 597 return rc; |
| 612 } | 598 } |
| 613 | 599 |
| 614 /* Read the event, set up the event object, and update | 600 /* Read the event, set up the event object, and update |
| 649 nm_event_set_user_record(event, user_record); | 635 nm_event_set_user_record(event, user_record); |
| 650 nm_user_record_set_status(user_record, status, text); | 636 nm_user_record_set_status(user_record, status, text); |
| 651 } | 637 } |
| 652 } | 638 } |
| 653 | 639 |
| 654 if (text) | 640 g_free(text); |
| 655 g_free(text); | |
| 656 | 641 |
| 657 return rc; | 642 return rc; |
| 658 } | 643 } |
| 659 | 644 |
| 660 /* Read the undeliverable event */ | 645 /* Read the undeliverable event */ |
| 675 if (rc == NM_OK) { | 660 if (rc == NM_OK) { |
| 676 guid = g_new0(char, size + 1); | 661 guid = g_new0(char, size + 1); |
| 677 rc = nm_read_all(conn, guid, size); | 662 rc = nm_read_all(conn, guid, size); |
| 678 } | 663 } |
| 679 | 664 |
| 680 if (guid) | 665 g_free(guid); |
| 681 g_free(guid); | |
| 682 | 666 |
| 683 return rc; | 667 return rc; |
| 684 } | 668 } |
| 685 | 669 |
| 686 /******************************************************************************* | 670 /******************************************************************************* |
| 710 return; | 694 return; |
| 711 } | 695 } |
| 712 | 696 |
| 713 if (--(event->ref_count) == 0) { | 697 if (--(event->ref_count) == 0) { |
| 714 | 698 |
| 715 if (event->source) | 699 g_free(event->source); |
| 716 g_free(event->source); | |
| 717 | 700 |
| 718 if (event->conference) | 701 if (event->conference) |
| 719 nm_release_conference(event->conference); | 702 nm_release_conference(event->conference); |
| 720 | 703 |
| 721 if (event->user_record) | 704 if (event->user_record) |
| 722 nm_release_user_record(event->user_record); | 705 nm_release_user_record(event->user_record); |
| 723 | 706 |
| 724 if (event->text) | 707 g_free(event->text); |
| 725 g_free(event->text); | |
| 726 | 708 |
| 727 g_free(event); | 709 g_free(event); |
| 728 } | 710 } |
| 729 } | 711 } |
| 730 | 712 |
| 934 if (event) | 916 if (event) |
| 935 nm_release_event(event); | 917 nm_release_event(event); |
| 936 } | 918 } |
| 937 | 919 |
| 938 /* Cleanup */ | 920 /* Cleanup */ |
| 939 if (source) | 921 g_free(source); |
| 940 g_free(source); | 922 |
| 941 | 923 return rc; |
| 942 return rc; | 924 } |
| 943 } |