Code cleanup

This commit is contained in:
Pierre Pronchery 2011-01-05 01:42:09 +00:00
parent d6f6231b65
commit 3e207900c4

View File

@ -1,5 +1,5 @@
/* $Id$ */ /* $Id$ */
/* Copyright (c) 2010 Pierre Pronchery <khorben@defora.org> */ /* Copyright (c) 2011 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Phone */ /* This file is part of DeforaOS Desktop Phone */
/* This program is free software: you can redistribute it and/or modify /* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -112,7 +112,7 @@ static int _openmoko_destroy(PhonePlugin * plugin)
_openmoko_mixer_close(plugin); _openmoko_mixer_close(plugin);
if(openmoko->window != NULL) if(openmoko->window != NULL)
gtk_widget_destroy(openmoko->window); gtk_widget_destroy(openmoko->window);
free(openmoko); object_delete(openmoko);
return 0; return 0;
} }