diff options
Diffstat (limited to 'gdk/gdkrgb.c')
-rw-r--r-- | gdk/gdkrgb.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index bedce4067..4c178b217 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -615,15 +615,9 @@ gdk_rgb_allocate_images (GdkRgbInfo *image_info, for (i = 0; i < n_images; i++) { - if (image_info->bitmap) - /* Use malloc() instead of g_malloc since X will free() this mem */ - image_info->static_image[i] = gdk_image_new_bitmap (image_info->visual, - (gpointer) malloc (REGION_WIDTH * REGION_HEIGHT >> 3), - REGION_WIDTH * (N_REGIONS / n_images), REGION_HEIGHT); - else - image_info->static_image[i] = gdk_image_new (shared ? GDK_IMAGE_SHARED : GDK_IMAGE_NORMAL, - image_info->visual, - REGION_WIDTH * (N_REGIONS / n_images), REGION_HEIGHT); + image_info->static_image[i] = gdk_image_new (shared ? GDK_IMAGE_SHARED : GDK_IMAGE_NORMAL, + image_info->visual, + REGION_WIDTH * (N_REGIONS / n_images), REGION_HEIGHT); if (!image_info->static_image[i]) { |