[gupnp-tools] discover: Free some strings on exit
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] discover: Free some strings on exit
- Date: Sat, 11 Jul 2015 22:27:00 +0000 (UTC)
commit 30975a47279b184b3ffcd4d7a7512f2e29393e94
Author: Jens Georg <mail jensge org>
Date: Sun Jun 14 13:33:04 2015 +0200
discover: Free some strings on exit
Signed-off-by: Jens Georg <mail jensge org>
src/discover/gssdp-discover.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/discover/gssdp-discover.c b/src/discover/gssdp-discover.c
index 685866c..783fd28 100644
--- a/src/discover/gssdp-discover.c
+++ b/src/discover/gssdp-discover.c
@@ -123,7 +123,7 @@ int main (int argc, char *argv[]) {
}
if (message_type == NULL) {
- message_type = "available";
+ message_type = g_strdup ("available");
} else {
if (strncmp (message_type, "available", 9) != 0 &&
strncmp (message_type, "all", 3) != 0 &&
@@ -173,5 +173,9 @@ int main (int argc, char *argv[]) {
g_object_unref (discover.browser);
g_object_unref (discover.client);
+ g_free (interface);
+ g_free (target);
+ g_free (message_type);
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]