diff --git a/src/interface.c b/src/interface.c index e1b3ab3..a934e70 100644 --- a/src/interface.c +++ b/src/interface.c @@ -416,14 +416,11 @@ gint compare_string_list_item(GtkTreeModel *model, GtkTreeIter *iter1, GtkTreeIt s2 = ""; ret = strcmp(s1, s2); - - /* if not commented it produces segfaults - if commented it produces mem-leak X-( ->> have to fix */ - /*if(s1 == NULL) + if(s1 != NULL) g_free(s1); if(s2 != NULL) - g_free(s2);*/ + g_free(s2); return ret; }