[xdg-desktop-portal-gnome/wip/rishi/coverity-fixes-00: 3/4] wallpaper: Don't leak the URI argument to SetWallpaperURI




commit a6698c51d5b30315f16ceb89b7fa3994f4841ecc
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

 src/wallpaper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wallpaper.c b/src/wallpaper.c
index 5f969f1..5bb2dc5 100644
--- a/src/wallpaper.c
+++ b/src/wallpaper.c
@@ -200,7 +200,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]