Fix #1248: Crash when hiding file list
[geeqie.git] / src / image.cc
index b2a45da..45af04d 100644 (file)
@@ -2177,7 +2177,7 @@ void image_set_frame(ImageWindow *imd, gboolean frame)
                if (imd->frame)
                        {
                        gtk_container_remove(GTK_CONTAINER(imd->frame), imd->pr);
-                       g_object_unref(imd->frame);
+                       gtk_container_remove(GTK_CONTAINER(imd->widget), imd->frame);
                        imd->frame = nullptr;
                        }
                gq_gtk_box_pack_start(GTK_BOX(imd->widget), imd->pr, TRUE, TRUE, 0);