[bijiben] bijiNoteId: fix leak for set_title
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] bijiNoteId: fix leak for set_title
- Date: Tue, 1 Jan 2013 23:31:26 +0000 (UTC)
commit b5e8983b41cff9baf01ef8553b6f9a76dbe154ab
Author: Pierre-Yves Luyten <py luyten fr>
Date: Wed Jan 2 00:30:59 2013 +0100
bijiNoteId: fix leak for set_title
src/libbiji/biji-note-id.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/biji-note-id.c b/src/libbiji/biji-note-id.c
index eaf63e8..df7f6bd 100644
--- a/src/libbiji/biji-note-id.c
+++ b/src/libbiji/biji-note-id.c
@@ -158,6 +158,9 @@ biji_note_id_get_file (BijiNoteID *note)
void
biji_note_id_set_title (BijiNoteID *n, gchar* title)
{
+ if (n->priv->title)
+ g_free (n->priv->title);
+
n->priv->title = g_strdup (title);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]