Fixed crash of applet if HAL is not running.
authorRoman Moravcik <roman.moravcik@gmail.com>
Wed, 23 Dec 2009 20:17:27 +0000 (21:17 +0100)
committerRoman Moravcik <roman.moravcik@gmail.com>
Wed, 23 Dec 2009 20:17:27 +0000 (21:17 +0100)
src/flashlight_applet.c

index 055dc49..1c9f726 100644 (file)
@@ -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);