changeset 7105:9d0e74b6ca68

[gaim-migrate @ 7670] Fix a double free. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 05:43:14 +0000
parents 7700a28929bd
children db6bd3e794d8
files src/util.c src/util.h
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Wed Oct 01 05:42:40 2003 +0000
+++ b/src/util.c	Wed Oct 01 05:43:14 2003 +0000
@@ -1890,9 +1890,6 @@
 		close(sock);
 		gfud->callback(gfud->user_data, gfud->webdata, gfud->len);
 
-		if (gfud->webdata)
-			g_free(gfud->webdata);
-
 		destroy_fetch_url_data(gfud);
 	}
 	else
--- a/src/util.h	Wed Oct 01 05:42:40 2003 +0000
+++ b/src/util.h	Wed Oct 01 05:43:14 2003 +0000
@@ -168,7 +168,7 @@
 
 /**
  * Returns the gaim settings directory in the user's home directory.
- * 
+ *
  * @return The gaim settings directory.
  *
  * @see gaim_home_dir()
@@ -255,7 +255,7 @@
  * g_free().
  *
  * @param path The returned path to the temp file.
- * 
+ *
  * @return A file pointer to the temporary file, or @c NULL on failure.
  */
 FILE *gaim_mkstemp(gchar **path);
@@ -307,7 +307,7 @@
  *
  * @param string The string from which to replace stuff.
  * @param delimiter The substring you want replaced.
- * @param replacement The substring you want inserted in place 
+ * @param replacement The substring you want inserted in place
  *        of the delimiting substring.
  */
 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter,