Skip to content

Commit 5b2257b

Browse files
author
Yuuki Harano
committed
残っていた箇所を修正。
1 parent 2d5a4cb commit 5b2257b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/image.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ free_bitmap_record (Display_Info *dpyinfo, Bitmap_Record *bm)
580580
#endif
581581

582582
#ifdef HAVE_PGTK
583-
// pgtk_image_destroy (bm->img);
584583
#endif
585584

586585
if (bm->file)
@@ -2752,9 +2751,6 @@ image_destroy_x_image (Emacs_Pix_Container pimg)
27522751
#ifdef HAVE_NS
27532752
ns_release_object (pimg);
27542753
#endif /* HAVE_NS */
2755-
#ifdef HAVE_PGTK
2756-
// pgtk_image_destroy (pimg);
2757-
#endif /* HAVE_PGTK */
27582754
}
27592755
#endif
27602756
}

src/pgtkterm.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4651,7 +4651,11 @@ pgtk_query_frame_background_color (struct frame *f, Emacs_Color *bgcolor)
46514651
static void
46524652
pgtk_free_pixmap (struct frame *_f, Emacs_Pixmap pixmap)
46534653
{
4654-
// pgtk_image_destroy(pixmap);
4654+
if (pixmap)
4655+
{
4656+
xfree (pixmap->data);
4657+
xfree (pixmap);
4658+
}
46554659
}
46564660

46574661
static struct terminal *

0 commit comments

Comments
 (0)