[patch]: odometer leak fixes
- From: Peter Hawkins <peterhawkins ozemail com au>
- To: gnome-list gnome org
- Subject: [patch]: odometer leak fixes
- Date: Sat, 12 Feb 2000 06:50:04 +0000
Hi there...
Sorry to annoy you guys _again_ =)
String leak fixes for odometer/odo.c and odometer/theme.c in
gnome-applets/. Patches are attached.
Am I allowed to just commit these? Or do I have to follow the
instructions in the HACKING file to the letter (It says post here...)?
=)
Peter
Index: theme.c
===================================================================
RCS file: /cvs/gnome/gnome-applets/odometer/theme.c,v
retrieving revision 1.3
diff -u -r1.3 theme.c
--- theme.c 2000/01/31 20:04:03 1.3
+++ theme.c 2000/02/12 06:43:52
@@ -53,6 +53,7 @@
prefix = g_strconcat ("=", datafile, "=/Default/", NULL);
gnome_config_push_prefix (prefix);
g_free (prefix);
+ g_free (datafile);
/*
* Loading images
Index: odo.c
===================================================================
RCS file: /cvs/gnome/gnome-applets/odometer/odo.c,v
retrieving revision 1.5
diff -u -r1.5 odo.c
--- odo.c 2000/01/30 00:10:57 1.5
+++ odo.c 2000/02/12 06:42:39
@@ -424,7 +424,7 @@
printf ("%s\n",ttip->str);
#endif
applet_widget_set_tooltip (APPLET_WIDGET(oa->applet),ttip->str);
- g_string_free(ttip,0);
+ g_string_free(ttip,TRUE);
}
draw_value(oa->darea1,distance_s,oa);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]