[gtk-vnc] Remove useless if before free
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Remove useless if before free
- Date: Fri, 9 Dec 2011 17:42:10 +0000 (UTC)
commit 0acfd6ae8732e73e68b5b7d33bf0f08bb44e1162
Author: Daniel P. Berrange <berrange redhat com>
Date: Fri Dec 9 16:58:45 2011 +0000
Remove useless if before free
src/vnccursor.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/vnccursor.c b/src/vnccursor.c
index 5f38e05..b7974e2 100644
--- a/src/vnccursor.c
+++ b/src/vnccursor.c
@@ -97,8 +97,7 @@ vnc_cursor_set_property(GObject *object,
switch (prop_id) {
case PROP_DATA:
- if (priv->data)
- g_free(priv->data);
+ g_free(priv->data);
priv->data = g_value_get_pointer(value);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]