[nautilus-actions] Fix a crash when defining a positive assertion



commit 6d75f3c76979045270376a93481a313f06f14ba4
Author: Pierre Wieser <pwieser trychlos org>
Date:   Sat Jul 31 21:37:26 2010 +0200

    Fix a crash when defining a positive assertion

 ChangeLog                  |    3 +++
 src/nact/nact-match-list.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 534033e..16fddc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-07-31 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-match-list.c (on_must_match_toggled):
+	Fix crash when defining a positive assertion.
+
 	* src/core/na-icontext.c (is_candidate_for_capabilities):
 	Implement the function.
 
diff --git a/src/nact/nact-match-list.c b/src/nact/nact-match-list.c
index dba092d..efebb23 100644
--- a/src/nact/nact-match-list.c
+++ b/src/nact/nact-match-list.c
@@ -595,7 +595,7 @@ on_must_match_toggled( GtkCellRendererToggle *cell_renderer, gchar *path_str, Ma
 			g_free( to_remove );
 		}
 
-		filters = g_slist_prepend( filters, filter );
+		filters = g_slist_prepend( filters, g_strdup( filter ));
 		( *data->pset )( context, filters );
 
 		na_core_utils_slist_free( filters );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]