Close windows when unloading
This commit is contained in:
parent
5f65db18ba
commit
b32a43af51
@ -162,6 +162,8 @@ static int _profiles_destroy(PhonePlugin * plugin)
|
||||
#endif
|
||||
if(profiles->source != 0)
|
||||
g_source_remove(profiles->source);
|
||||
if(profiles->window != NULL)
|
||||
gtk_widget_destroy(profiles->window);
|
||||
if(profiles->pao != NULL)
|
||||
pa_operation_cancel(profiles->pao);
|
||||
if(profiles->pac != NULL)
|
||||
|
@ -114,6 +114,8 @@ static int _smscrypt_destroy(PhonePlugin * plugin)
|
||||
{
|
||||
SMSCrypt * smscrypt = plugin->priv;
|
||||
|
||||
if(smscrypt->window != NULL)
|
||||
gtk_widget_destroy(smscrypt->window);
|
||||
free(smscrypt);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user