diff options
Diffstat (limited to 'src/pdm-dialog.c')
-rwxr-xr-x | src/pdm-dialog.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index 981016d67..45a816939 100755 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -430,9 +430,14 @@ pdm_cmd_delete_selection (PdmActionInfo *action) if (row_ref != NULL) { path = gtk_tree_row_reference_get_path (row_ref); - gtk_tree_view_set_cursor (GTK_TREE_VIEW (action->treeview), path, NULL, FALSE); + + if (path != NULL) + { + gtk_tree_view_set_cursor (GTK_TREE_VIEW (action->treeview), path, NULL, FALSE); + gtk_tree_path_free (path); + } + gtk_tree_row_reference_free (row_ref); - gtk_tree_path_free (path); } } |