summaryrefslogtreecommitdiff
path: root/src/xsane-preview.c
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:51 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:51 +0000
commited1d7afab34d41b155ac701ee9db87c3f057b99b (patch)
treeda1f7a34e4eabf92200a567910f9470d10b78e0c /src/xsane-preview.c
parentdc7150ada6000f0c8e6ee61da9598573d3b63b7f (diff)
Imported Upstream version 0.997upstream/0.997
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);