[monkey-bubble: 97/753] stuff that is allocated with g_malloc has to be free'd with g_free and



commit af82aa97f3f19f9c589fa0212f1fae08324d6ba5
Author: George Lebl <jirka 5z com>
Date:   Wed Mar 24 03:29:02 1999 +0000

    stuff that is allocated with g_malloc has to be free'd with g_free and
    
    Tue Mar 23 19:28:41 1999  George Lebl  <jirka 5z com>
    
            * gnome-score.c,gnome-exec.c,gnome-entry.c: stuff that is allocated
              with g_malloc has to be free'd with g_free and vice versa

 libgnome/gnome-score.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 3380d9e..5b169e8 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -68,7 +68,7 @@ print_ascore (struct ascore_t *ascore, FILE * outfile)
 static void
 free_ascore(struct ascore_t *data)
 {
-   free(data->username);
+   g_free(data->username);
    g_free(data);
 }
 



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