~ubuntu-branches/ubuntu/precise/totem/precise-proposed

« back to all changes in this revision

Viewing changes to debian/patches/git_commandfix_incorrect_free.patch

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-07-27 15:47:52 UTC
  • mfrom: (189.1.9 precise)
  • Revision ID: package-import@ubuntu.com-20120727154752-gcj8uuyw30q1pwpz
Tags: 3.0.1-0ubuntu21.1
* debian/patches/git_use_keywords.patch:
  - backport upstream patch to set keywords in the desktop entry, 
    it makes easier to find totem in the unity dash or gnome-shell
    (lp: #976624)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 2b9a4a6445ada4d739e02645f38dba3b9b166190 Mon Sep 17 00:00:00 2001
 
2
From: Estêvão Samuel Procópio <tevaum@gmail.com>
 
3
Date: Sun, 18 Dec 2011 21:29:41 +0000
 
4
Subject: totem-options: Should not free commands list data.
 
5
 
 
6
In totem_options_process_for_server the commands GList holds
 
7
integers and freeing those integers leads to a segfault.
 
8
Only the GList needs to be freed.
 
9
 
 
10
Closes: bgo#666431
 
11
---
 
12
diff --git a/src/totem-options.c b/src/totem-options.c
 
13
index 2fb0c43..43649c3 100644
 
14
--- a/src/totem-options.c
 
15
+++ b/src/totem-options.c
 
16
@@ -211,7 +211,6 @@ totem_options_process_for_server (Totem                     *totem,
 
17
                totem_action_remote (totem, GPOINTER_TO_INT (l->data), NULL);
 
18
        }
 
19
 
 
20
-       g_list_foreach (commands, (GFunc) g_free, NULL);
 
21
        g_list_free (commands);
 
22
 }
 
23
 
 
24
--
 
25
cgit v0.9.0.2
 
26