[gimp] plug-ins: do not unref anymore int stores given to…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: do not unref anymore int stores given to…
- Date: Fri, 17 Jun 2022 16:02:41 +0000 (UTC)
commit 5b22cef6440dca4d9a3762bfa3c3d207502a2ec2
Author: Jehan <jehan girinstud io>
Date: Fri Jun 17 17:59:54 2022 +0200
plug-ins: do not unref anymore int stores given to…
… gimp_procedure_dialog_get_int_combo().
See previous commit.
plug-ins/common/file-jpegxl.c | 2 --
plug-ins/common/file-png.c | 1 -
plug-ins/file-jpeg/jpeg-save.c | 4 +---
plug-ins/file-tiff/file-tiff-save.c | 1 -
plug-ins/file-webp/file-webp-dialog.c | 1 -
5 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/plug-ins/common/file-jpegxl.c b/plug-ins/common/file-jpegxl.c
index 5cf49ff995..a5685441cc 100644
--- a/plug-ins/common/file-jpegxl.c
+++ b/plug-ins/common/file-jpegxl.c
@@ -1118,7 +1118,6 @@ save_dialog (GimpImage *image,
gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
"speed", GIMP_INT_STORE (store));
- g_object_unref (store);
store = gimp_int_store_new (_("8 bit/channel"), 8,
_("16 bit/channel"), 16,
@@ -1126,7 +1125,6 @@ save_dialog (GimpImage *image,
gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
"save-bit-depth", GIMP_INT_STORE (store));
- g_object_unref (store);
orig_profile_check = gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
"uses-original-profile",
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 4e9e043470..88991672b6 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -2289,7 +2289,6 @@ save_dialog (GimpImage *image,
NULL);
gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
"format", GIMP_INT_STORE (store));
- g_object_unref (store);
gimp_procedure_dialog_set_sensitive (GIMP_PROCEDURE_DIALOG (dialog),
"save-transparent",
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 185cf2592d..184b6cb798 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -950,7 +950,6 @@ save_dialog (GimpProcedure *procedure,
widget = gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
"sub-sampling", GIMP_INT_STORE (store));
widget = gimp_label_int_widget_get_widget (GIMP_LABEL_INT_WIDGET (widget));
- g_object_unref (store);
if (! gimp_drawable_is_rgb (drawable))
{
@@ -964,8 +963,7 @@ save_dialog (GimpProcedure *procedure,
_("Floating-Point"), 2,
NULL);
gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
- "dct", GIMP_INT_STORE (store));
- g_object_unref (store);
+ "dct", GIMP_INT_STORE (store));
gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
"advanced-title", _("Advanced Options"));
diff --git a/plug-ins/file-tiff/file-tiff-save.c b/plug-ins/file-tiff/file-tiff-save.c
index ee22d26c54..0af7ff6da3 100644
--- a/plug-ins/file-tiff/file-tiff-save.c
+++ b/plug-ins/file-tiff/file-tiff-save.c
@@ -1254,7 +1254,6 @@ save_dialog (GimpImage *image,
NULL);
combo = gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
"compression", GIMP_INT_STORE (store));
- g_object_unref (store);
combo = gimp_label_int_widget_get_widget (GIMP_LABEL_INT_WIDGET (combo));
gimp_int_combo_box_set_sensitivity (GIMP_INT_COMBO_BOX (combo),
combo_sensitivity_func,
diff --git a/plug-ins/file-webp/file-webp-dialog.c b/plug-ins/file-webp/file-webp-dialog.c
index bf6415c1a8..40ac6c2e39 100644
--- a/plug-ins/file-webp/file-webp-dialog.c
+++ b/plug-ins/file-webp/file-webp-dialog.c
@@ -86,7 +86,6 @@ save_dialog (GimpImage *image,
NULL);
gimp_procedure_dialog_get_int_combo (GIMP_PROCEDURE_DIALOG (dialog),
"preset", GIMP_INT_STORE (store));
- g_object_unref (store);
/* Create scale for image and alpha quality */
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]