diff options
author | George Lebl <jirka@5z.com> | 1998-08-13 04:09:02 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 1998-08-13 04:09:02 +0000 |
commit | c6f95f5cbea70f8a4709428bf42c5ecd2841efda (patch) | |
tree | 8af4ccc8a1dd6835597952c228cd470da353bc2c | |
parent | 695a63521bc1647f265c4dae530d6e6326ad6067 (diff) |
fixed a memory leakGNOME_0_27
Wed Aug 12 21:08:46 1998 George Lebl <jirka@5z.com>
* cpuload/cpuload.c: fixed a memory leak
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | cpuload/cpuload.c | 4 | ||||
-rw-r--r-- | mailcheck/ChangeLog | 4 |
3 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Aug 12 21:08:46 1998 George Lebl <jirka@5z.com> + + * cpuload/cpuload.c: fixed a memory leak + Wed Aug 12 21:04:42 1998 George Lebl <jirka@5z.com> * cpumemusage/procbar.c: check for cases of allocation being diff --git a/cpuload/cpuload.c b/cpuload/cpuload.c index dcd124ffa..6865ff8f9 100644 --- a/cpuload/cpuload.c +++ b/cpuload/cpuload.c @@ -24,7 +24,7 @@ void start_timer( void ); GtkWidget *cpuload; -GdkPixmap *pixmap; +GdkPixmap *pixmap = NULL; GtkWidget *disp; GdkGC *gc; GdkColor ucolor, scolor; @@ -94,6 +94,8 @@ int draw(void) static gint cpuload_configure(GtkWidget *widget, GdkEventConfigure *event) { + if(pixmap) + gdk_pixmap_unref(pixmap); pixmap = gdk_pixmap_new( widget->window, widget->allocation.width, widget->allocation.height, diff --git a/mailcheck/ChangeLog b/mailcheck/ChangeLog index 4c8782bcd..9eead6487 100644 --- a/mailcheck/ChangeLog +++ b/mailcheck/ChangeLog @@ -1,3 +1,7 @@ +Wed Aug 12 21:08:46 1998 George Lebl <jirka@5z.com> + + * cpuload/cpuload.c: fixed a memory leak + Wed Aug 12 21:04:42 1998 George Lebl <jirka@5z.com> * cpumemusage/procbar.c: check for cases of allocation being |