yelp r3246 - in trunk: . src
- From: shaunm svn gnome org
- To: svn-commits-list gnome org
- Subject: yelp r3246 - in trunk: . src
- Date: Thu, 9 Apr 2009 04:41:32 +0000 (UTC)
Author: shaunm
Date: Thu Apr 9 04:41:32 2009
New Revision: 3246
URL: http://svn.gnome.org/viewvc/yelp?rev=3246&view=rev
Log:
* src/yelp-transform.c:
- Patched memory leak, bug #578372, from Machael Chudobiak
Modified:
trunk/ChangeLog
trunk/src/yelp-transform.c
Modified: trunk/src/yelp-transform.c
==============================================================================
--- trunk/src/yelp-transform.c (original)
+++ trunk/src/yelp-transform.c Thu Apr 9 04:41:32 2009
@@ -73,6 +73,8 @@
YelpTransform *transform;
transform = g_new0 (YelpTransform, 1);
+ transform->func = func;
+ transform->user_data = user_data;
transform->stylesheet = xsltParseStylesheetFile (BAD_CAST stylesheet);
if (!transform->stylesheet) {
@@ -82,19 +84,16 @@
"not valid."),
stylesheet);
transform_error (transform);
+ g_free (transform);
return NULL;
}
- transform->func = func;
-
transform->queue = g_async_queue_new ();
transform->chunks = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_free,
NULL);
- transform->user_data = user_data;
-
return transform;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]