Crash in dLeyna with 1.3.0 on shutdown
It looks like pending_actions is not modified properly anymore:
C==180985== Invalid read of size 8
==180985== at 0x4DF605D: gupnp_service_proxy_dispose (gupnp-service-proxy.c:257)
==180985== by 0x4D98A93: UnknownInlinedFun (gobject.c:3486)
==180985== by 0x4D98A93: g_object_unref (gobject.c:3416)
==180985== by 0x4859856: prv_service_proxies_free (device.c:143)
==180985== by 0x4859A33: prv_dlr_context_delete (device.c:207)
==180985== by 0x48AE214: ptr_array_remove_index (garray.c:1570)
==180985== by 0x486541B: prv_server_unavailable_cb (upnp.c:284)
==180985== by 0x4D8A65D: g_cclosure_marshal_VOID__OBJECTv (gmarshal.c:1910)
==180985== by 0x4DA9839: UnknownInlinedFun (gclosure.c:873)
==180985== by 0x4DA9839: g_signal_emit_valist (gsignal.c:3406)
==180985== by 0x4DA9982: g_signal_emit (gsignal.c:3553)
==180985== by 0x4DE8138: gupnp_control_point_resource_unavailable (gupnp-control-point.c:928)
==180985== by 0x4D8A4E3: g_cclosure_marshal_VOID__STRINGv (gmarshal.c:1462)
==180985== by 0x4DA9839: UnknownInlinedFun (gclosure.c:873)
==180985== by 0x4DA9839: g_signal_emit_valist (gsignal.c:3406)
==180985== Address 0xa137c78 is 72 bytes inside a block of size 144 free'd
==180985== at 0x48430E4: free (vg_replace_malloc.c:755)
==180985== by 0x48E824C: g_free (gmem.c:199)
==180985== by 0x4DFB375: gupnp_service_proxy_action_unref (gupnp-service-proxy-action.c:248)
==180985== by 0x4C516B1: g_task_finalize (gtask.c:663)
==180985== by 0x4D98B17: UnknownInlinedFun (gobject.c:3524)
==180985== by 0x4D98B17: g_object_unref (gobject.c:3416)
==180985== by 0x4DF82E1: action_task_got_response (gupnp-service-proxy.c:764)
==180985== by 0x4EE004A: soup_session_process_queue_item.part.0 (soup-session.c:2045)
==180985== by 0x4EE059C: UnknownInlinedFun (soup-session.c:1972)
==180985== by 0x4EE059C: async_run_queue (soup-session.c:2085)
==180985== by 0x4EE06B9: idle_run_queue (soup-session.c:2112)
==180985== by 0x48DF74A: g_idle_dispatch (gmain.c:5848)
==180985== by 0x48E34CE: UnknownInlinedFun (gmain.c:3337)
==180985== by 0x48E34CE: g_main_context_dispatch (gmain.c:4055)
==180985== by 0x49374E7: g_main_context_iterate.constprop.0 (gmain.c:4131)
==180985== Block was alloc'd at
==180985== at 0x4845464: calloc (vg_replace_malloc.c:1117)
==180985== by 0x48EBE60: g_malloc0 (gmem.c:136)
==180985== by 0x4937DEC: g_rc_box_alloc_full.constprop.0 (grcbox.c:234)
==180985== by 0x4DFB126: gupnp_service_proxy_action_new_internal (gupnp-service-proxy-action.c:202)
==180985== by 0x4DFB62E: gupnp_service_proxy_action_new (gupnp-service-proxy-action.c:340)
==180985== by 0x485AEFD: prv_get_protocol_info (device.c:898)
==180985== by 0x4860D41: dleyna_gasync_task_process_cb (gasync-task.c:75)
==180985== by 0x49CDF3B: prv_process_task (task-processor.c:388)
==180985== by 0x48DF74A: g_idle_dispatch (gmain.c:5848)
==180985== by 0x48E34CE: UnknownInlinedFun (gmain.c:3337)
==180985== by 0x48E34CE: g_main_context_dispatch (gmain.c:4055)
==180985== by 0x49374E7: g_main_context_iterate.constprop.0 (gmain.c:4131)
==180985== by 0x48E2A92: g_main_loop_run (gmain.c:4329)
==180985==
==180985==
==180985== HEAP SUMMARY:
==180985== in use at exit: 5,606,653 bytes in 46,782 blocks
==180985== total heap usage: 179,010 allocs, 132,228 frees, 20,249,257 bytes allocated
==180985==
==180985== LEAK SUMMARY:
==180985== definitely lost: 0 bytes in 0 blocks
==180985== indirectly lost: 0 bytes in 0 blocks
==180985== possibly lost: 976 bytes in 3 blocks
==180985== still reachable: 5,554,925 bytes in 46,314 blocks
==180985== suppressed: 0 bytes in 0 blocks
==180985== Rerun with --leak-check=full to see details of leaked memory
==180985==
==180985== For lists of detected and suppressed errors, rerun with: -s
==180985== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)