mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
CloudProviders: Don't clear the _recentMenu pointer
The _recentMenu pointer ref should not be freed, when building the menu. This fixes #1920 and #1818
This commit is contained in:
parent
f1ffc16d86
commit
18615d0297
1 changed files with 1 additions and 1 deletions
|
@ -69,6 +69,7 @@ CloudProviderWrapper::~CloudProviderWrapper()
|
|||
g_object_unref(_cloudProviderAccount);
|
||||
g_object_unref(_mainMenu);
|
||||
g_object_unref(actionGroup);
|
||||
g_object_unref(_recentMenu);
|
||||
}
|
||||
|
||||
CloudProvidersAccountExporter* CloudProviderWrapper::accountExporter()
|
||||
|
@ -258,7 +259,6 @@ GMenuModel* CloudProviderWrapper::getMenuModel() {
|
|||
g_menu_append_section(_mainMenu, nullptr, G_MENU_MODEL(section));
|
||||
g_clear_object (§ion);
|
||||
|
||||
g_clear_object (&_recentMenu);
|
||||
return G_MENU_MODEL(_mainMenu);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue