summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp/gupnp-context.c')
-rw-r--r--libgupnp/gupnp-context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 6a0caa4..04b521d 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -628,6 +628,7 @@ make_server_uri (GUPnPContext *context)
{
GUri *uri = g_uri_ref (uris->data);
g_slist_free_full (uris, (GDestroyNotify) g_uri_unref);
+
return uri;
}
return NULL;
@@ -946,6 +947,7 @@ host_path_handler (G_GNUC_UNUSED SoupServer *server,
HostPathData *host_path_data;
const char *user_agent;
const char *host;
+ GBytes *buffer = NULL;
orig_locales = NULL;
locales = NULL;
@@ -1092,7 +1094,7 @@ host_path_handler (G_GNUC_UNUSED SoupServer *server,
// Creating the buffer here regardless of whether we use it.
// It will take ownership of the mapped file and we can unref it on exit
// This will prevent leaking the mapped file in other cases
- GBytes *buffer = g_bytes_new_with_free_func (
+ buffer = g_bytes_new_with_free_func (
g_mapped_file_get_contents (mapped_file),
g_mapped_file_get_length (mapped_file),
(GDestroyNotify) g_mapped_file_unref,