diff options
author | Travis Reitter <treitter@gmail.com> | 2010-07-10 08:39:56 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:37 +0800 |
commit | 16b9e5e98e4e57896751ee1d37012cd30a8d508a (patch) | |
tree | 1c618b629ba4e7338b551279145f0e2a2e579923 /libempathy-gtk | |
parent | 4705170690b772c5c4ee375926272fd178a2fd19 (diff) | |
download | gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.tar gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.tar.gz gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.tar.bz2 gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.tar.lz gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.tar.xz gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.tar.zst gsoc2013-empathy-16b9e5e98e4e57896751ee1d37012cd30a8d508a.zip |
Minimize the scope of some variables and avoid risk of double-freeing a string.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 3f8d1dd11..360d37e33 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -143,9 +143,6 @@ individual_view_is_visible_individual (EmpathyIndividualView *self, EmpathyIndividualViewPriv *priv = GET_PRIV (self); EmpathyLiveSearch *live = EMPATHY_LIVE_SEARCH (priv->search_widget); const gchar *str; - const gchar *p; - gchar *dup_str = NULL; - gboolean visible; GList *personas, *l; g_assert (live != NULL); @@ -159,6 +156,10 @@ individual_view_is_visible_individual (EmpathyIndividualView *self, personas = folks_individual_get_personas (individual); for (l = personas; l; l = l->next) { + const gchar *p; + gchar *dup_str = NULL; + gboolean visible; + str = folks_persona_get_uid (l->data); p = strstr (str, "@"); if (p != NULL) |