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