[brasero] Try to kill a warning
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Try to kill a warning
- Date: Mon, 7 Sep 2009 14:21:30 +0000 (UTC)
commit 74983da23e3f18de57903fd71ecaabc2456df327
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sun Sep 6 16:18:09 2009 +0200
Try to kill a warning
libbrasero-media/brasero-medium.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/libbrasero-media/brasero-medium.c b/libbrasero-media/brasero-medium.c
index b4077d7..1bb1b42 100644
--- a/libbrasero-media/brasero-medium.c
+++ b/libbrasero-media/brasero-medium.c
@@ -2931,8 +2931,10 @@ brasero_medium_probed (gpointer data)
priv = BRASERO_MEDIUM_PRIVATE (data);
- g_thread_join (priv->probe);
- priv->probe = NULL;
+ if (priv->probe) {
+ g_thread_join (priv->probe);
+ priv->probe = NULL;
+ }
/* This signal must be emitted in the main thread */
GDK_THREADS_ENTER ();
@@ -3066,9 +3068,13 @@ brasero_medium_finalize (GObject *object)
BRASERO_MEDIA_LOG ("Finalizing Medium object");
if (priv->probe) {
+ GThread *probe;
+
+ probe = priv->probe;
priv->probe_cancelled = TRUE;
- g_thread_join (priv->probe);
- priv->probe = 0;
+
+ g_thread_join (probe);
+ priv->probe = NULL;
}
if (priv->probe_id) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]