[grilo-mediaserver2] Set to NULL freed variable



commit ce83451c98434f2b3cabdc54858dc9f3fb3d8b60
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Fri Apr 15 14:06:06 2011 +0000

    Set to NULL freed variable
    
    So a NULL is actually returned instead of invalid address.

 lib/media-server2-client.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/media-server2-client.c b/lib/media-server2-client.c
index cadee24..6ace3d5 100644
--- a/lib/media-server2-client.c
+++ b/lib/media-server2-client.c
@@ -728,6 +728,7 @@ ms2_client_get_properties_finish (MS2Client *client,
   /* If there was an error, just return NULL to avoid partially-filled table */
   if (adata->error) {
     g_hash_table_unref (adata->properties);
+    adata->properties = NULL;
     adata->children = NULL;
   }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]