[gnome-system-monitor] Fixed occasional segmentation fault on application close
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Fixed occasional segmentation fault on application close
- Date: Thu, 27 Sep 2012 21:33:58 +0000 (UTC)
commit 94e1a9bb8a9aaacec8f7935ed4c052f7bf940e9c
Author: Robert Roth <robert roth off gmail com>
Date: Fri Sep 28 00:33:39 2012 +0300
Fixed occasional segmentation fault on application close
src/callbacks.cpp | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/callbacks.cpp b/src/callbacks.cpp
index 926fab0..f4f1bb4 100644
--- a/src/callbacks.cpp
+++ b/src/callbacks.cpp
@@ -477,15 +477,16 @@ cb_timeout (gpointer data)
{
ProcData * const procdata = static_cast<ProcData*>(data);
guint new_interval;
+ if (!procdata->terminating) {
+ proctable_update_all (procdata);
- proctable_update_all (procdata);
-
- if (procdata->smooth_refresh->get(new_interval))
- {
- procdata->timeout = g_timeout_add(new_interval,
+ if (procdata->smooth_refresh->get(new_interval))
+ {
+ procdata->timeout = g_timeout_add(new_interval,
cb_timeout,
procdata);
- return FALSE;
+ return FALSE;
+ }
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]