summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-01-31 15:22:46 +0000
committerDaniel P. Berrange <berrange@redhat.com>2012-02-06 12:42:18 +0000
commit48c50437fa29f8baccf8acb550f2235fd12643df (patch)
tree36ffd02489051f4c5c86267d5f7c2fc595a8017b /plugin
parentdf1ae9f6865414d74340bdd1d85ae7d30307e870 (diff)
downloadvirt-viewer-48c50437fa29f8baccf8acb550f2235fd12643df.tar.gz
virt-viewer-48c50437fa29f8baccf8acb550f2235fd12643df.tar.xz
virt-viewer-48c50437fa29f8baccf8acb550f2235fd12643df.zip
Remove useless if() before free()
Diffstat (limited to 'plugin')
-rw-r--r--plugin/npshell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/npshell.c b/plugin/npshell.c
index d85739c..bb43da3 100644
--- a/plugin/npshell.c
+++ b/plugin/npshell.c
@@ -235,8 +235,8 @@ NPP_Destroy(NPP instance, NPSavedData** save G_GNUC_UNUSED)
if (This != NULL)
{
(void) VirtViewerDestroyWindow (instance);
- if (This->uri) free (This->uri);
- if (This->name) free (This->name);
+ free (This->uri);
+ free (This->name);
NPN_MemFree(instance->pdata);
instance->pdata = NULL;
}