File: 14_css_leak.patch

package info (click to toggle)
gedit 3.14.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 33,032 kB
  • ctags: 6,941
  • sloc: ansic: 49,961; sh: 12,025; python: 6,862; xml: 5,976; makefile: 1,239; perl: 30
file content (21 lines) | stat: -rw-r--r-- 543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From 0bebb1a24030e2456729db8c485cfaa2ae208c27 Mon Sep 17 00:00:00 2001
From: Paolo Borelli <pborelli@gnome.org>
Date: Sun, 19 Oct 2014 12:53:26 +0200
Subject: Do not leak GFile when trying to load a non existing css


diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index c502f09..dc5d803 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -493,6 +493,7 @@ load_css_from_resource (const gchar *filename,
 
 	if (!required && !g_file_query_exists (css_file, NULL))
 	{
+		g_object_unref (css_file);
 		return;
 	}
 
-- 
cgit v0.10.1