Fix missing references for the current directory in pan folder stuff.
authorLaurent Monin <geeqie@norz.org>
Thu, 3 Jul 2008 18:16:39 +0000 (18:16 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 3 Jul 2008 18:16:39 +0000 (18:16 +0000)
It was causing an fd magick assertion failure.
Bug reported by Omari Stephens.

src/pan-folder.c

index c499453..8d1be7b 100644 (file)
@@ -239,7 +239,7 @@ static FlowerGroup *pan_flower_group(PanWindow *pw, FileData *dir_fd, gint x, gi
 
        y += pi_box->height;
 
-       pi_box = pan_item_box_new(pw, dir_fd,
+       pi_box = pan_item_box_new(pw, file_data_ref(dir_fd),
                                  x, y,
                                  PAN_BOX_BORDER * 2, PAN_BOX_BORDER * 2,
                                  PAN_BOX_OUTLINE_THICKNESS,
@@ -385,7 +385,7 @@ static void pan_folder_tree_path(PanWindow *pw, FileData *dir_fd,
 
        *y += pi_box->height;
 
-       pi_box = pan_item_box_new(pw, dir_fd,
+       pi_box = pan_item_box_new(pw, file_data_ref(dir_fd),
                                  *x, *y,
                                  PAN_BOX_BORDER, PAN_BOX_BORDER,
                                  PAN_BOX_OUTLINE_THICKNESS,