[totem] browser-plugin: Fix possible run-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] browser-plugin: Fix possible run-time warning
- Date: Sun, 4 Dec 2011 11:38:49 +0000 (UTC)
commit 6177d7d02d545fade8e0aa6ed81e2efa7999c837
Author: Bastien Nocera <hadess hadess net>
Date: Sun Dec 4 11:13:03 2011 +0100
browser-plugin: Fix possible run-time warning
When starting up the viewer fails.
browser-plugin/totemPlugin.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
index f2c6adf..265e40c 100644
--- a/browser-plugin/totemPlugin.cpp
+++ b/browser-plugin/totemPlugin.cpp
@@ -691,7 +691,10 @@ totemPlugin::ViewerCleanup ()
g_free (mViewerServiceName);
mViewerServiceName = NULL;
- g_bus_unwatch_name (mBusWatchId);
+ if (mBusWatchId) {
+ g_bus_unwatch_name (mBusWatchId);
+ mBusWatchId = 0;
+ }
if (mCancellable) {
g_cancellable_cancel (mCancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]