Skip to content

Commit

Permalink
Fixed memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
xhorak committed Jan 23, 2024
1 parent fcb02c7 commit 6a0f82a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/open-uri.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,8 @@ handle_scheme_supported (XdpDbusOpenURI *object,
"Scheme not specified");
return G_DBUS_METHOD_INVOCATION_HANDLED;
}
GAppInfo* app_info = g_app_info_get_default_for_uri_scheme (arg_scheme);

g_autoptr(GAppInfo) app_info = g_app_info_get_default_for_uri_scheme (arg_scheme);

g_debug ("Handler for scheme: %s%s found.", arg_scheme, app_info ? "" : " not");
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", app_info != NULL));
Expand Down

0 comments on commit 6a0f82a

Please sign in to comment.