From 7244cca7fbb45f9b67e53da46731e29b0c7bb620 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 21 Sep 2016 17:07:33 -0500 Subject: Use an explicit registry object so that it gets free'd when the function exits --- src/notifications.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/notifications.cpp b/src/notifications.cpp index 4a2c846..a0ceb6f 100644 --- a/src/notifications.cpp +++ b/src/notifications.cpp @@ -26,6 +26,7 @@ #ifdef HAS_LOMIRIAPPLAUNCH #include +#include #endif #include @@ -463,7 +464,8 @@ private: static std::string calendar_app_id() { #ifdef HAS_LOMIRIAPPLAUNCH - auto app_id = lomiri::app_launch::AppID::discover("com.lomiri.calendar"); + auto registry = std::make_shared(); + auto app_id = lomiri::app_launch::AppID::discover(registry, "com.lomiri.calendar"); if (!app_id.empty()) // Due the use of old API by messaging_menu we need append a extra ".desktop" to the app_id. -- cgit v1.2.3