[gimp/gimp-2-10] app: fix gui_wait() cleanup
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: fix gui_wait() cleanup
- Date: Tue, 29 May 2018 20:36:17 +0000 (UTC)
commit 081867de1ece79216704b7b367fe60a0454cace7
Author: Ell <ell_se yahoo com>
Date: Tue May 29 16:32:07 2018 -0400
app: fix gui_wait() cleanup
(cherry picked from commit 5a66d6cc74bf25911c09d89e0b70782e5815c85f)
app/gui/gui-vtable.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/app/gui/gui-vtable.c b/app/gui/gui-vtable.c
index e922221942..70375743f2 100644
--- a/app/gui/gui-vtable.c
+++ b/app/gui/gui-vtable.c
@@ -471,9 +471,9 @@ gui_wait_input_async (GimpAsync *async,
}
static gboolean
-gui_wait (Gimp *gimp,
- GimpWaitable *waitable,
- const gchar *message)
+gui_wait (Gimp *gimp,
+ GimpWaitable *waitable,
+ const gchar *message)
{
GimpProcedure *procedure;
GimpValueArray *args;
@@ -559,7 +559,12 @@ gui_wait (Gimp *gimp,
/* signal completion to the plug-in */
close (output_pipe[1]);
- g_clear_pointer (&input_async, gimp_waitable_wait);
+ if (input_async)
+ {
+ gimp_waitable_wait (GIMP_WAITABLE (input_async));
+
+ g_object_unref (input_async);
+ }
close (input_pipe[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]