[gtk-vnc] Remove useless if() before free()
- From: Daniel P. Berrange <dberrange src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk-vnc] Remove useless if() before free()
- Date: Mon, 6 Jul 2009 11:25:09 +0000 (UTC)
commit 047f4023d1dddaa963a5d9a37b70ce9c4fd09878
Author: Daniel P. Berrange <berrange redhat com>
Date: Mon Jul 6 12:11:37 2009 +0100
Remove useless if() before free()
plugin/npshell.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugin/npshell.c b/plugin/npshell.c
index a1d4531..05e5965 100644
--- a/plugin/npshell.c
+++ b/plugin/npshell.c
@@ -227,8 +227,8 @@ NPP_Destroy(NPP instance, NPSavedData** save G_GNUC_UNUSED)
if (This != NULL)
{
(void) GtkVNCDestroyWindow (instance);
- if (This->host) free (This->host);
- if (This->port) free (This->port);
+ free (This->host);
+ free (This->port);
NPN_MemFree(instance->pdata);
instance->pdata = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]