30 lines
1006 B
Plaintext
30 lines
1006 B
Plaintext
$OpenBSD: patch-src_amitk_xif_sel_c,v 1.2 2011/05/15 21:16:06 jasper Exp $
|
|
--- src/amitk_xif_sel.c.orig Wed Dec 9 03:00:11 2009
|
|
+++ src/amitk_xif_sel.c Sun May 15 23:15:55 2011
|
|
@@ -2018,8 +2018,12 @@ amitk_xif_selection_dir_activate (GtkTreeView *t
|
|
gtk_tree_model_get_iter (model, &iter, path);
|
|
gtk_tree_model_get (model, &iter, DIR_COLUMN, &filename, -1);
|
|
filename = get_real_filename (filename, TRUE);
|
|
- amitk_xif_selection_populate (fs, filename, FALSE, FALSE);
|
|
- g_free (filename);
|
|
+ if (filename) {
|
|
+ amitk_xif_selection_populate (fs, filename, FALSE, FALSE);
|
|
+ }
|
|
+ if (filename) {
|
|
+ g_free (filename);
|
|
+ }
|
|
}
|
|
|
|
#ifdef G_PLATFORM_WIN32
|
|
@@ -2141,7 +2145,9 @@ amitk_xif_selection_populate (AmitkXifSelection *fs,
|
|
|
|
gtk_list_store_append (file_model, &iter);
|
|
gtk_list_store_set (file_model, &iter, DIR_COLUMN, xifname, -1);
|
|
- g_free(xifname);
|
|
+ if (xifname) {
|
|
+ g_free(xifname);
|
|
+ }
|
|
|
|
|
|
} else if (cmpl_is_directory (poss)) {
|