[gssdp] resource-group: Add some documentation
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] resource-group: Add some documentation
- Date: Sat, 15 Oct 2016 20:25:51 +0000 (UTC)
commit e7e335c166b4aa9d6d215134b3b31bd014427f6b
Author: Jens Georg <mail jensge org>
Date: Sat Oct 15 21:59:05 2016 +0200
resource-group: Add some documentation
As I had to check why this is not leaking, I added some docs for the next
time.
Signed-off-by: Jens Georg <mail jensge org>
libgssdp/gssdp-resource-group.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgssdp/gssdp-resource-group.c b/libgssdp/gssdp-resource-group.c
index 46e432f..df25214 100644
--- a/libgssdp/gssdp-resource-group.c
+++ b/libgssdp/gssdp-resource-group.c
@@ -1117,6 +1117,8 @@ resource_free (Resource *resource)
priv = gssdp_resource_group_get_instance_private
(resource->resource_group);
+ /* discovery_response_free will take clear of freeing the list
+ * elements and data */
while (resource->responses)
discovery_response_free (resource->responses->data);
@@ -1165,6 +1167,9 @@ create_target_regex (const char *target, guint *version, GError **error)
version_str = get_version_for_target (pattern);
if (version_str != NULL) {
+ /* version_str is now at : + 1 in the pattern string, so this
+ * replaces the actual version with the number matching regex
+ */
*version = atoi (version_str);
strcpy (version_str, VERSION_PATTERN);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]