comparison src/device-x.c @ 4117:229bd619740a

[xemacs-hg @ 2007-08-15 11:06:02 by crestani] 2007-08-15 Marcus Crestani <crestani@xemacs.org> * buffer.c (Fkill_buffer): * console-tty.c (free_tty_console_struct): * device-gtk.c (free_gtk_device_struct): * device-msw.c (mswindows_delete_device): * device-msw.c (msprinter_delete_device): * device-x.c (free_x_device_struct): * device-x.c (x_delete_device): * dynarr.c (Dynarr_lisp_realloc): * dynarr.c (Dynarr_free): * elhash.c: * elhash.c (finalize_hash_table): * elhash.c (resize_hash_table): * elhash.c (pdump_reorganize_hash_table): * extents.c (gap_array_delete_marker): * frame-gtk.c (gtk_delete_frame): * frame-msw.c (mswindows_delete_frame): * frame-x.c (x_delete_frame): * glyphs.c (check_for_ignored_expose): * mc-alloc.c (mc_realloc_1): * mc-alloc.h: * objects-tty.c (tty_finalize_color_instance): * objects-tty.c (tty_finalize_font_instance): * objects-tty.c (console_type_create_objects_tty): * syntax.c: * syntax.c (uninit_buffer_syntax_cache): * vdb.c (Ftest_vdb): Remove all calls to mc_free.
author crestani
date Wed, 15 Aug 2007 11:06:10 +0000
parents f6f6fc9eb269
children 80e07b006f9c
comparison
equal deleted inserted replaced
4116:9a42c5e5eb4e 4117:229bd619740a
937 937
938 /************************************************************************/ 938 /************************************************************************/
939 /* closing an X connection */ 939 /* closing an X connection */
940 /************************************************************************/ 940 /************************************************************************/
941 941
942 #ifndef NEW_GC
942 static void 943 static void
943 free_x_device_struct (struct device *d) 944 free_x_device_struct (struct device *d)
944 { 945 {
945 #ifdef NEW_GC
946 mc_free (d->device_data);
947 #else /* not NEW_GC */
948 xfree (d->device_data, void *); 946 xfree (d->device_data, void *);
947 }
949 #endif /* not NEW_GC */ 948 #endif /* not NEW_GC */
950 }
951 949
952 static void 950 static void
953 x_delete_device (struct device *d) 951 x_delete_device (struct device *d)
954 { 952 {
955 Display *display; 953 Display *display;
988 if (checking_free) 986 if (checking_free)
989 enable_strict_free_check (); 987 enable_strict_free_check ();
990 #endif 988 #endif
991 } 989 }
992 990
991 #ifndef NEW_GC
993 free_x_device_struct (d); 992 free_x_device_struct (d);
993 #endif /* not NEW_GC */
994 } 994 }
995 995
996 996
997 /************************************************************************/ 997 /************************************************************************/
998 /* handle X errors */ 998 /* handle X errors */