From 46b0ebed94ff5cf1ca4ff0e03b6a8e76452af1fb Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 3 Oct 2008 18:23:43 +0000 Subject: [PATCH] * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with correct arguments. --- src/ChangeLog | 5 +++++ src/image.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 05447ddb884..fb3515511f9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-10-02 Adrian Robert + + * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with + correct arguments. + 2008-10-03 Glenn Morris * emacs.c (USAGE1): Add --daemon. diff --git a/src/image.c b/src/image.c index 7ce5b9b2e08..b24feca3779 100644 --- a/src/image.c +++ b/src/image.c @@ -1624,7 +1624,7 @@ x_clear_image_1 (f, img, pixmap_p, mask_p, colors_p) img->pixmap = NO_PIXMAP; #ifdef HAVE_NS if (img->background_valid) - ns_free_indexed_color(img->background); + ns_free_indexed_color(img->background, f); #endif img->background_valid = 0; } -- 2.39.5