[xdg-desktop-portal-gnome/wip/rishi/coverity-fixes-00-gnome-42: 3/4] wallpaper: Don't leak the URI argument to SetWallpaperURI
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xdg-desktop-portal-gnome/wip/rishi/coverity-fixes-00-gnome-42: 3/4] wallpaper: Don't leak the URI argument to SetWallpaperURI
- Date: Sat, 2 Jul 2022 11:40:45 +0000 (UTC)
commit 0ac57f9da895227161d069f87d5e48a0cc569b7e
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jun 30 18:47:12 2022 +0200
wallpaper: Don't leak the URI argument to SetWallpaperURI
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/42
(cherry picked from commit 01e152f7f0af1a7fff8d6a766f66e5ed6e2e58c1)
src/wallpaper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wallpaper.c b/src/wallpaper.c
index 217a61d..b6c393d 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -198,7 +198,7 @@ handle_set_wallpaper_uri (XdpImplWallpaper *object,
if (!show_preview)
{
- set_wallpaper (handle, g_strdup (arg_uri));
+ set_wallpaper (handle, arg_uri);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]