summaryrefslogtreecommitdiff
path: root/src/xsane-preview.c
diff options
context:
space:
mode:
authorJulien BLACHE <jblache@debian.org>2010-05-29 12:49:57 +0200
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:54 +0000
commit98aa79889a1cc8be7284b431372dc11b26c65e4e (patch)
tree00326799a359e1d3504df8b07f4b020255c607c9 /src/xsane-preview.c
parent05f0966f64f56ad3348ce8569324ee6c3e692aa8 (diff)
parented1d7afab34d41b155ac701ee9db87c3f057b99b (diff)
Imported Debian patch 0.997-1debian/0.997-1
Diffstat (limited to 'src/xsane-preview.c')
-rw-r--r--src/xsane-preview.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xsane-preview.c b/src/xsane-preview.c
index e8b49a3..c6122d5 100644
--- a/src/xsane-preview.c
+++ b/src/xsane-preview.c
@@ -4425,6 +4425,7 @@ Preview *preview_new(void)
gtk_box_pack_start(GTK_BOX(p->menu_box), pixmapwidget, FALSE, FALSE, 2);
gtk_widget_show(pixmapwidget);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
preset_area_option_menu = gtk_option_menu_new();
xsane_back_gtk_set_tooltip(xsane.tooltips, preset_area_option_menu, DESC_PRESET_AREA);
@@ -4441,6 +4442,7 @@ Preview *preview_new(void)
gtk_box_pack_start(GTK_BOX(p->menu_box), pixmapwidget, FALSE, FALSE, 2);
gtk_widget_show(pixmapwidget);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
rotation_menu = gtk_menu_new();
@@ -4488,6 +4490,7 @@ Preview *preview_new(void)
gtk_box_pack_start(GTK_BOX(p->menu_box), pixmapwidget, FALSE, FALSE, 2);
gtk_widget_show(pixmapwidget);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
ratio_menu = gtk_menu_new();
@@ -4543,24 +4546,28 @@ Preview *preview_new(void)
gtk_box_pack_start(GTK_BOX(action_box), p->valid_pixmap, FALSE, FALSE, 0);
gtk_widget_show(p->valid_pixmap);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
pixmap = gdk_pixmap_create_from_xpm_d(p->top->window, &mask, xsane.bg_trans, (gchar **) scanning_xpm);
p->scanning_pixmap = gtk_image_new_from_pixmap(pixmap, mask);
gtk_box_pack_start(GTK_BOX(action_box), p->scanning_pixmap, FALSE, FALSE, 0);
gtk_widget_show(p->scanning_pixmap);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
pixmap = gdk_pixmap_create_from_xpm_d(p->top->window, &mask, xsane.bg_trans, (gchar **) incomplete_xpm);
p->incomplete_pixmap = gtk_image_new_from_pixmap(pixmap, mask);
gtk_box_pack_start(GTK_BOX(action_box), p->incomplete_pixmap, FALSE, FALSE, 0);
gtk_widget_show(p->incomplete_pixmap);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
pixmap = gdk_pixmap_create_from_xpm_d(p->top->window, &mask, xsane.bg_trans, (gchar **) invalid_xpm);
p->invalid_pixmap = gtk_image_new_from_pixmap(pixmap, mask);
gtk_box_pack_start(GTK_BOX(action_box), p->invalid_pixmap, FALSE, FALSE, 0);
gtk_widget_show(p->invalid_pixmap);
gdk_drawable_unref(pixmap);
+ gdk_drawable_unref(mask);
/* Start button */
p->start = gtk_button_new_with_label(BUTTON_PREVIEW_ACQUIRE);