[gthumb/gthumb-3-4] unref the task after completion
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-4] unref the task after completion
- Date: Mon, 3 Oct 2016 09:24:57 +0000 (UTC)
commit 2b80e1984e49a91c65401950b0771f8bb1164c91
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Sep 11 11:42:40 2016 +0200
unref the task after completion
extensions/edit_metadata/dlg-edit-metadata.c | 4 +---
extensions/gstreamer_tools/actions.c | 1 -
extensions/image_viewer/gth-image-viewer-page.c | 3 +--
3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/extensions/edit_metadata/dlg-edit-metadata.c b/extensions/edit_metadata/dlg-edit-metadata.c
index 12a6d33..ab63353 100644
--- a/extensions/edit_metadata/dlg-edit-metadata.c
+++ b/extensions/edit_metadata/dlg-edit-metadata.c
@@ -136,6 +136,7 @@ saver_completed_cb (GthTask *task,
close_dialog (data);
dialog_data_unref (data);
+ _g_object_unref (task);
}
@@ -195,9 +196,6 @@ edit_metadata_dialog__response_cb (GtkDialog *dialog,
G_CALLBACK (saver_completed_cb),
data);
gth_browser_exec_task (data->browser, task, GTH_TASK_FLAGS_IGNORE_ERROR);
-
- g_object_unref (task);
-
}
diff --git a/extensions/gstreamer_tools/actions.c b/extensions/gstreamer_tools/actions.c
index 4499395..fdc922c 100644
--- a/extensions/gstreamer_tools/actions.c
+++ b/extensions/gstreamer_tools/actions.c
@@ -162,7 +162,6 @@ screenshot_ready_cb (GdkPixbuf *pixbuf,
G_CALLBACK (save_screenshot_task_completed_cb),
save_data);
gth_browser_exec_task (GTH_BROWSER (save_data->browser), task, GTH_TASK_FLAGS_IGNORE_ERROR);
-
}
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index bcef4cd..a93fe1a 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -1323,6 +1323,7 @@ save_image_task_completed_cb (GthTask *task,
}
save_data_free (data);
+ _g_object_unref (task);
}
@@ -1384,8 +1385,6 @@ _gth_image_viewer_page_real_save (GthViewerPage *base,
G_CALLBACK (save_image_task_completed_cb),
data);
gth_browser_exec_task (GTH_BROWSER (self->priv->browser), task, GTH_TASK_FLAGS_DEFAULT);
-
- _g_object_unref (task);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]