diff options
author | Jens Georg <mail@jensge.org> | 2021-06-05 09:37:01 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2021-06-05 09:41:10 +0200 |
commit | 1a133912d863365b060c4ca76ebb49eef278182b (patch) | |
tree | bf05b680e533f050e0b3a29533dbacdd891cb760 | |
parent | f5539eedcfde3e7178afa1322a16ddbe46a9c90c (diff) | |
download | gupnp-1a133912d863365b060c4ca76ebb49eef278182b.tar.gz |
Unbreak dLeyna shutdown
This broke managed control points by not releasing the CP when the
context manger loses its last reference, causing the
available/unavailable callbacks being triggered on potentially freed
objects
More investigation needs to be done why this fix was needed
Revert "control-point: Hold a ref on control point while async downloading"
This reverts commit 4a68246fe21df78bd1c3a0460d2d1eaaaf5747f7.
-rw-r--r-- | libgupnp/gupnp-control-point.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c index 5f94aa0..6a59fb0 100644 --- a/libgupnp/gupnp-control-point.c +++ b/libgupnp/gupnp-control-point.c @@ -116,7 +116,6 @@ get_description_url_data_free (GetDescriptionURLData *data) g_free (data->udn); g_free (data->service_type); g_free (data->description_url); - g_object_unref (data->control_point); g_slice_free (GetDescriptionURLData, data); } @@ -738,7 +737,7 @@ load_description (GUPnPControlPoint *control_point, http_request_set_accept_language (data->message); - data->control_point = g_object_ref (control_point); + data->control_point = control_point; data->udn = g_strdup (udn); data->service_type = g_strdup (service_type); |