[gimp] plug-ins: minor cleanup in file-pat
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: minor cleanup in file-pat
- Date: Tue, 24 Sep 2019 17:36:46 +0000 (UTC)
commit f94a2419313031171021aa9722ab80aa4142a3c8
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 24 15:58:54 2019 +0200
plug-ins: minor cleanup in file-pat
plug-ins/common/file-pat.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/plug-ins/common/file-pat.c b/plug-ins/common/file-pat.c
index 081b1e7317..d6199af6e7 100644
--- a/plug-ins/common/file-pat.c
+++ b/plug-ins/common/file-pat.c
@@ -204,10 +204,7 @@ pat_save (GimpProcedure *procedure,
if (run_mode == GIMP_RUN_INTERACTIVE)
{
if (! save_dialog (procedure, G_OBJECT (config)))
- {
- status = GIMP_PDB_CANCEL;
- goto out;
- }
+ status = GIMP_PDB_CANCEL;
}
if (status == GIMP_PDB_SUCCESS)
@@ -245,7 +242,6 @@ pat_save (GimpProcedure *procedure,
gimp_value_array_unref (save_retvals);
}
- out:
g_object_unref (config);
if (export == GIMP_EXPORT_EXPORT)
@@ -267,7 +263,6 @@ save_dialog (GimpProcedure *procedure,
GIMP_PROCEDURE_CONFIG (config),
_("Export Image as Pattern"));
- /* The main grid */
grid = gtk_grid_new ();
gtk_container_set_border_width (GTK_CONTAINER (grid), 12);
gtk_grid_set_column_spacing (GTK_GRID (grid), 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]