From 8f6aa898c485155ff3f700d0f6f8bcc84e4c7f3e Mon Sep 17 00:00:00 2001 From: Roman Moravcik Date: Wed, 23 Dec 2009 21:17:27 +0100 Subject: [PATCH] Fixed crash of applet if HAL is not running. --- src/flashlight_applet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flashlight_applet.c b/src/flashlight_applet.c index 055dc49..1c9f726 100644 --- a/src/flashlight_applet.c +++ b/src/flashlight_applet.c @@ -293,6 +293,7 @@ flashlight_status_plugin_init (FlashlightPlugin *plugin) } libhal_ctx_set_user_data (priv->hal, NULL); libhal_ctx_free (priv->hal); + return; } libhal_device_add_property_watch (priv->hal, CAM_COVER_UDI, NULL); -- 1.7.9.5