summaryrefslogtreecommitdiff
path: root/librsvg
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2000-08-19 02:22:16 +0000
committerGeorge Lebl <jirka@src.gnome.org>2000-08-19 02:22:16 +0000
commit201120193305553b53a4d7e259b98606e1f2bc4f (patch)
treed6f928601582f12ca197778d190dbea396529479 /librsvg
parent796f49c2c7deaf0e6cc3f785a6b009449069e355 (diff)
downloadnautilus-201120193305553b53a4d7e259b98606e1f2bc4f.tar.gz
Use g_strdup instead of strdup (get_CPU_description): Free allocated data
Fri Aug 18 21:22:17 2000 George Lebl <jirka@5z.com> * components/hardware/nautilus-hardware-view.c (read_proc_info) (extract_info) (get_CPU_description) (get_RAM_description): Use g_strdup instead of strdup (get_CPU_description): Free allocated data when returning due to an error * components/music/nautilus-music-view.c (nautilus_music_view_update_from_uri): Initialize clist_entry in a loop, use g_strdup_printf instead of malloc and sprintf, and properly free allocated data after use * components/services/inventory/lib/eazel-inventory-shared.c (read_proc_info) components/services/inventory/nautilus-view/nautilus-inventory-view.c (gather_config_button_cb) libnautilus-extensions/nautilus-string.c (nautilus_str_middle_truncate) librsvg/rsvg.c (rsvg_ctx_free): Use g_strdup instead of strdup and g_free instead of free to prevent crashes with glib compiled with --enable-mem-check * src/file-manager/Makefile.am, src/file-manager/nautilus-indexing-info.[ch], src/file-manager/fm-search-list-view.c (indexing_info_callback) (real_merge_menus): Bug #1369: Add a dialog for indexing info to the file menu. The dialog shows the last time the indexing was done and allows to update the indexes. Only shown on the file search result dialog
Diffstat (limited to 'librsvg')
-rw-r--r--librsvg/rsvg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librsvg/rsvg.c b/librsvg/rsvg.c
index d4126809d..35e252d19 100644
--- a/librsvg/rsvg.c
+++ b/librsvg/rsvg.c
@@ -190,12 +190,12 @@ rsvg_ctx_free (RsvgCtx *ctx)
for (i = 0; i < ctx->n_state; i++)
rsvg_state_finalize (&ctx->state[i]);
- free (ctx->state);
+ g_free (ctx->state);
g_hash_table_foreach (ctx->entities, rsvg_ctx_free_helper, NULL);
g_hash_table_destroy (ctx->entities);
- free (ctx);
+ g_free (ctx);
}
static void