Commit ddecd119 authored by Andrea Schaefer's avatar Andrea Schaefer
Browse files

Fix leak in contacts-row

parent 9146e737
...@@ -31,9 +31,9 @@ typedef struct ...@@ -31,9 +31,9 @@ typedef struct
GtkWidget *timestamp; GtkWidget *timestamp;
GtkWidget *message_count; GtkWidget *message_count;
gpointer data; gpointer data;
const gchar *id; gchar *id;
const gchar *number; gchar *number;
} ChattyContactRowPrivate; } ChattyContactRowPrivate;
struct _ChattyContactRow struct _ChattyContactRow
...@@ -141,11 +141,13 @@ chatty_contact_row_set_property (GObject *object, ...@@ -141,11 +141,13 @@ chatty_contact_row_set_property (GObject *object,
break; break;
case PROP_ID: case PROP_ID:
priv->id = g_strdup(g_value_get_string (value)); g_free (priv->id);
priv->id = g_value_dup_string (value);
break; break;
case PROP_NUMBER: case PROP_NUMBER:
priv->number = g_strdup(g_value_get_string (value)); g_free (priv->number);
priv->number = g_value_dup_string (value);
break; break;
default: default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment