Merge lp:~kees/indicator-messages/trunk-lp-533021 into lp:indicator-messages/0.5

Proposed by Kees Cook
Status: Merged
Merged at revision: not available
Proposed branch: lp:~kees/indicator-messages/trunk-lp-533021
Merge into: lp:indicator-messages/0.5
Diff against target: 21 lines (+2/-2)
1 file modified
src/messages-service.c (+2/-2)
To merge this branch: bzr merge lp:~kees/indicator-messages/trunk-lp-533021
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+24304@code.launchpad.net

Description of the change

Allocate memory for hash table items (LP: #533021)

To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

  review approve

On Wed, 2010-04-28 at 10:36 +0000, Kees Cook wrote:
> Kees Cook has proposed merging lp:~kees/indicator-messages/trunk-lp-533021 into lp:indicator-messages.
>
> Requested reviews:
> Indicator Applet Developers (indicator-applet-developers)
> Related bugs:
> #533021 cannot blacklist all messages indicators
> https://bugs.launchpad.net/bugs/533021
>
>
> Allocate memory for hash table items (LP: #533021)
> differences between files attachment (review-diff.txt)
> === modified file 'src/messages-service.c'
> --- src/messages-service..c 2010-04-17 17:59:27 +0000
> +++ src/messages-service.c 2010-04-28 10:36:27 +0000
> @@ -315,7 +315,7 @@
> }
>
> /* Add a definition file into the black list and eclipse
> - and launchers that have the same file. */
> + any launchers that have the same file. */
> static gboolean
> blacklist_add (gpointer udata)
> {
> @@ -359,7 +359,7 @@
> }
>
> /* Actually blacklist this thing */
> - g_hash_table_insert(blacklist, desktop, definition);
> + g_hash_table_insert(blacklist, g_strdup(desktop), g_strdup(definition));
> g_debug("Adding Blacklist item '%s' for desktop '%s'", definition, desktop);
>
> /* Go through and eclipse folks */
>

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/messages-service.c'
2--- src/messages-service.c 2010-04-17 17:59:27 +0000
3+++ src/messages-service.c 2010-04-28 10:36:27 +0000
4@@ -315,7 +315,7 @@
5 }
6
7 /* Add a definition file into the black list and eclipse
8- and launchers that have the same file. */
9+ any launchers that have the same file. */
10 static gboolean
11 blacklist_add (gpointer udata)
12 {
13@@ -359,7 +359,7 @@
14 }
15
16 /* Actually blacklist this thing */
17- g_hash_table_insert(blacklist, desktop, definition);
18+ g_hash_table_insert(blacklist, g_strdup(desktop), g_strdup(definition));
19 g_debug("Adding Blacklist item '%s' for desktop '%s'", definition, desktop);
20
21 /* Go through and eclipse folks */

Subscribers

People subscribed via source and target branches