Applied fix for a bug 5369: Hildon-status-menu crashed when uninstalling applications
authorRoman Moravcik <roman.moravcik@gmail.com>
Wed, 10 Mar 2010 13:27:11 +0000 (14:27 +0100)
committerRoman Moravcik <roman.moravcik@gmail.com>
Wed, 10 Mar 2010 13:27:11 +0000 (14:27 +0100)
src/flashlight_applet.c

index 944c40c..285d596 100644 (file)
@@ -324,6 +324,7 @@ flashlight_status_plugin_finalize (GObject *object)
        if (priv->hal) {
                libhal_device_remove_property_watch (priv->hal, CAM_COVER_UDI, NULL);
                libhal_ctx_set_user_data (priv->hal, NULL);
        if (priv->hal) {
                libhal_device_remove_property_watch (priv->hal, CAM_COVER_UDI, NULL);
                libhal_ctx_set_user_data (priv->hal, NULL);
+               libhal_ctx_shutdown (priv->hal, NULL);
                libhal_ctx_free (priv->hal);
        }
 
                libhal_ctx_free (priv->hal);
        }