Changeset 16257
- Timestamp:
- 04/28/08 09:16:22 (5 months ago)
- Files:
-
- trunk/midgard/apis/python/py_midgard_connection.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgard/apis/python/py_midgard_connection.c
r16244 r16257 85 85 return NULL; 86 86 87 GHashTable *hashtable = NULL;88 87 gboolean connected = 89 88 midgard_connection_open( 90 89 MIDGARD_CONNECTION(self->obj), 91 (const gchar *)name, 92 &hashtable); 93 if(hashtable) 94 g_hash_table_destroy(hashtable); 95 90 (const gchar *)name); 96 91 if(connected) 97 92 Py_RETURN_TRUE; … … 114 109 PyGObject *_config = (PyGObject *)config; 115 110 116 GHashTable *hashtable = NULL;117 111 gboolean connected = 118 112 midgard_connection_open_config( 119 113 MIDGARD_CONNECTION(self->obj), 120 MIDGARD_CONFIG(_config->obj), 121 &hashtable); 122 if(hashtable) 123 g_hash_table_destroy(hashtable); 124 114 MIDGARD_CONFIG(_config->obj)); 125 115 if(connected) 126 116 Py_RETURN_TRUE;
