[vte] app: Fix a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] app: Fix a mem leak
- Date: Sat, 18 Nov 2017 18:23:00 +0000 (UTC)
commit bca23e844378e57294c96661b5051ff199736cdc
Author: Christian Persch <chpe src gnome org>
Date: Sat Nov 18 19:13:17 2017 +0100
app: Fix a mem leak
src/app/app.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/app/app.cc b/src/app/app.cc
index cfb4d28..e882681 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -1323,6 +1323,7 @@ window_update_paste_sensitivity(VteappWindow* window)
bool can_paste = false;
if (gtk_clipboard_wait_for_targets(window->clipboard, &targets, &n_targets)) {
can_paste = gtk_targets_include_text(targets, n_targets);
+ g_free(targets);
}
auto action = g_action_map_lookup_action(G_ACTION_MAP(window), "copy");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]