[Nautilus-list] eel memleak patch
- From: Anders Carlsson <andersca gnu org>
- To: nautilus-list lists eazel com
- Subject: [Nautilus-list] eel memleak patch
- Date: 23 Aug 2001 08:33:05 +0200
Hello,
here's another patch that fixes some memleaks in eel.
//andersca
andersca gnu org
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/eel/ChangeLog,v
retrieving revision 1.113.2.25
diff -u -r1.113.2.25 ChangeLog
--- ChangeLog 2001/08/22 17:19:32 1.113.2.25
+++ ChangeLog 2001/08/23 06:30:46
@@ -1,3 +1,17 @@
+2001-08-23 Anders Carlsson <andersca gnu org>
+
+ * eel/eel-font-manager.c (eel_self_check_font_manager): Free the
+ original_current_dir variable.
+
+ * eel/eel-canvas-rect.c (rect_update): Free our fill_svp
+ if it exists.
+
+ * eel/eel-smooth-text-layout.c (eel_text_layout_new): Free
+ the wc_separators string.
+
+ * eel/eel-gdk-font-extensions.c (xlfd_string_get_nth_as_int):
+ Free strings returned by xlfd_string_get_nth.
+
2001-08-22 Ramiro Estrugo <ramiro fateware com>
* eel/eel-gconf-extensions.c: (eel_gconf_value_set_string_list):
Index: eel/eel-canvas-rect.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-canvas-rect.c,v
retrieving revision 1.10
diff -u -r1.10 eel-canvas-rect.c
--- eel/eel-canvas-rect.c 2001/04/18 23:05:22 1.10
+++ eel/eel-canvas-rect.c 2001/08/23 06:30:47
@@ -223,6 +223,9 @@
if (!re->fill_set) {
gnome_canvas_item_update_svp (item, &re->fill_svp, NULL);
} else {
+ if (re->fill_svp)
+ art_svp_free (re->fill_svp);
+
canvas_item_update_svp_clip_no_repaint
(item, &re->fill_svp, art_svp_from_vpath (vpath), clip_path);
Index: eel/eel-font-manager.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-font-manager.c,v
retrieving revision 1.13.2.3
diff -u -r1.13.2.3 eel-font-manager.c
--- eel/eel-font-manager.c 2001/08/14 18:35:51 1.13.2.3
+++ eel/eel-font-manager.c 2001/08/23 06:30:47
@@ -1467,6 +1467,7 @@
EEL_CHECK_STRING_RESULT (font_description_get_char_set (description), "iso8859-1");
font_table_list_free (font_table_list);
+ g_free (original_current_dir);
}
#endif /* !EEL_OMIT_SELF_CHECK */
Index: eel/eel-gdk-font-extensions.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-gdk-font-extensions.c,v
retrieving revision 1.8.4.1
diff -u -r1.8.4.1 eel-gdk-font-extensions.c
--- eel/eel-gdk-font-extensions.c 2001/08/01 21:20:20 1.8.4.1
+++ eel/eel-gdk-font-extensions.c 2001/08/23 06:30:47
@@ -1229,6 +1229,7 @@
}
if (eel_str_is_equal (nth, "*")) {
+ g_free (nth);
return XLFD_WILDCARD_VALUE;
}
Index: eel/eel-smooth-text-layout.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-smooth-text-layout.c,v
retrieving revision 1.6.4.1
diff -u -r1.6.4.1 eel-smooth-text-layout.c
--- eel/eel-smooth-text-layout.c 2001/08/01 21:20:20 1.6.4.1
+++ eel/eel-smooth-text-layout.c 2001/08/23 06:30:47
@@ -1286,6 +1286,7 @@
}
}
g_free (wc_text);
+ g_free (wc_separators);
return text_layout;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]