[gthumb/gthumb-3-2] unref the task when not needed anymore.
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-2] unref the task when not needed anymore.
- Date: Fri, 28 Jun 2013 15:56:18 +0000 (UTC)
commit 36f56e1e68c363023ca61df5950fd47081678af0
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Jun 24 18:21:08 2013 +0200
unref the task when not needed anymore.
this partially reverts commit 4a82897bff14d8e380532e0b26eda1ad2e1c4ddf
.../file_tools/gth-file-tool-adjust-contrast.c | 2 --
extensions/gstreamer_tools/actions.c | 2 +-
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-adjust-contrast.c
b/extensions/file_tools/gth-file-tool-adjust-contrast.c
index 148df0d..3ec3ba9 100644
--- a/extensions/file_tools/gth-file-tool-adjust-contrast.c
+++ b/extensions/file_tools/gth-file-tool-adjust-contrast.c
@@ -280,8 +280,6 @@ gth_file_tool_adjust_contrast_activate (GthFileTool *base)
G_CALLBACK (image_task_completed_cb),
base);
gth_browser_exec_task (GTH_BROWSER (window), task, FALSE);
-
- g_object_unref (task);
}
diff --git a/extensions/gstreamer_tools/actions.c b/extensions/gstreamer_tools/actions.c
index cd23eb7..a2bd807 100644
--- a/extensions/gstreamer_tools/actions.c
+++ b/extensions/gstreamer_tools/actions.c
@@ -68,6 +68,7 @@ save_screenshot_task_completed_cb (GthTask *task,
gst_element_set_state (gth_media_viewer_page_get_playbin (page), GST_STATE_PLAYING);
save_date_free (save_data);
+ g_object_unref (task);
}
@@ -113,7 +114,6 @@ save_as_response_cb (GtkDialog *file_sel,
gtk_widget_destroy (GTK_WIDGET (file_sel));
- g_object_unref (task);
g_free (folder_uri);
g_object_unref (folder);
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]