[gnome-system-monitor] Fix one more gchar* leak.



commit 442eecd76d7428ff93a3ec5e698bdf2829165fb6
Author: Benoît Dejean <bdejean gmail com>
Date:   Thu Jun 15 10:29:45 2017 +0200

    Fix one more gchar* leak.

 src/proctable.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index cbb0d85..384e55f 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -615,7 +615,7 @@ get_process_name (ProcInfo *info,
             basename = g_path_get_basename(args[i]);
 
             if (g_str_has_prefix(basename, cmd)) {
-                info->name = basename;
+                info->name = make_string(basename);
                 return;
             }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]