[anjuta] run-program: Avoid a critical warning when closing a project
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] run-program: Avoid a critical warning when closing a project
- Date: Tue, 13 Nov 2012 21:11:38 +0000 (UTC)
commit b83c26c548f14ee9d6747bc4f3461cf0228d4a52
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Mon Nov 12 22:03:02 2012 +0100
run-program: Avoid a critical warning when closing a project
plugins/run-program/execute.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/run-program/execute.c b/plugins/run-program/execute.c
index b0f3c60..674d32c 100644
--- a/plugins/run-program/execute.c
+++ b/plugins/run-program/execute.c
@@ -588,7 +588,7 @@ run_free_all_children (RunProgramPlugin *plugin)
/* Remove terminal child-exited handle */
term = anjuta_shell_get_interface (ANJUTA_PLUGIN (plugin)->shell,
IAnjutaTerminal, NULL);
- g_signal_handlers_disconnect_by_func (term, on_child_terminated, plugin);
+ if (term != NULL) g_signal_handlers_disconnect_by_func (term, on_child_terminated, plugin);
plugin->child_exited_connection = 0;
/* Remove all child-exited source */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]