[PATCH 7/7] wmappkill: Use g_free from glib instead of glibtop_free.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
gliptop_free no longer exists.
---
 wmappkill/wmAppKill.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/wmappkill/wmAppKill.c b/wmappkill/wmAppKill.c
index f38a89b..2a5e219 100644
--- a/wmappkill/wmAppKill.c
+++ b/wmappkill/wmAppKill.c
@@ -38,7 +38,6 @@
 #include <glibtop.h>
 #include <glibtop/proclist.h>
 #include <glibtop/procstate.h>
-#include <glibtop/xmalloc.h>
 
 #include <time.h>
 #include <signal.h>
@@ -123,11 +122,11 @@ int CheckProc(pid_t pid)
    unsigned int *n;
 
    if ((n = glibtop_get_proclist (&bof, GLIBTOP_KERN_PROC_PID , (int64_t)pid)) == NULL) {
-      glibtop_free(n);
+      g_free(n);
       return -1;
    }
 
-   glibtop_free(n);
+   g_free(n);
    return 0;
 }
 
@@ -175,7 +174,7 @@ _desc *GetProcList(void) 		       /* create a double linked list */
 
    lastOne -> next = NULL;
    lastProcPid = n[nbPr - 1];
-   glibtop_free(n);
+   g_free(n);
 
    if (procBaseName && i) gNbProc = nbPr - i + 1;   /* procBase has been found */
    else {			       /* procBaseName is null or hasn't been found */
@@ -273,7 +272,7 @@ int CheckProcChange(void)
 
    if (diffNbProc == 0 && (n[nbPr - 1] == lastProcPid)){  /* only changes before baseproc */
       gNbProcTotal = nbPr;
-      glibtop_free(n);
+      g_free(n);
       return 0;
    }
 
@@ -287,7 +286,7 @@ int CheckProcChange(void)
 	CheckProcToAdd(nbPr - diffNbProc - 1, n, nbPr);
    }
 
-   glibtop_free(n);
+   g_free(n);
    return 1;
 }
 
-- 
2.7.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.