[gitg] Fix leak of revision ref in DND
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix leak of revision ref in DND
- Date: Sat, 23 Oct 2010 12:51:58 +0000 (UTC)
commit dc6aae149ce4f5898fadbc844490731519f614ff
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sat Oct 23 14:51:11 2010 +0200
Fix leak of revision ref in DND
gitg/gitg-dnd.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-dnd.c b/gitg/gitg-dnd.c
index 777db38..c10b070 100644
--- a/gitg/gitg-dnd.c
+++ b/gitg/gitg-dnd.c
@@ -462,6 +462,11 @@ begin_drag (GtkWidget *widget,
gtk_tree_path_free (path);
}
+
+ if (revision)
+ {
+ gitg_revision_unref (revision);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]