diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2007-01-07 12:17:12 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2007-01-07 12:17:12 +0000 |
| commit | 999edbe4f2da4580dea6828f56ccde30aeb87727 (patch) | |
| tree | 60bf11d5e573c5c3a3a5e27dd9be443a6982b0ec | |
| parent | 2193759b8db0a9151ad34d3015d0506c17d33593 (diff) | |
fixed memory leak occuring near SNIPPET_SIGNATURE
| -rw-r--r-- | lasso/xml/xml.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index 017dcd2b..fff437c8 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -1111,7 +1111,11 @@ lasso_node_dispose(GObject *object) g_assert_not_reached(); } - *value = NULL; + if (type != SNIPPET_SIGNATURE) { + /* Signature snippet is not something to free, + * so don't set the value to NULL */ + *value = NULL; + } } class = g_type_class_peek_parent(class); } |
