Merge lp:~unity-team/unity/unity.fix-752293 into lp:unity

Proposed by Mirco Müller
Status: Merged
Merged at revision: 1090
Proposed branch: lp:~unity-team/unity/unity.fix-752293
Merge into: lp:unity
Diff against target: 69 lines (+23/-12)
3 files modified
src/IndicatorObjectEntryProxyRemote.cpp (+4/-0)
src/IndicatorObjectFactoryRemote.cpp (+15/-12)
src/IndicatorObjectProxyRemote.cpp (+4/-0)
To merge this branch: bzr merge lp:~unity-team/unity/unity.fix-752293
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+56890@code.launchpad.net

Description of the change

potential fix for LP: #752293

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Looks good! approved :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/IndicatorObjectEntryProxyRemote.cpp'
--- src/IndicatorObjectEntryProxyRemote.cpp 2011-03-17 09:41:28 +0000
+++ src/IndicatorObjectEntryProxyRemote.cpp 2011-04-08 07:55:41 +0000
@@ -126,6 +126,10 @@
126 bool __image_sensitive,126 bool __image_sensitive,
127 bool __image_visible)127 bool __image_visible)
128{128{
129 // sanity check
130 if (!__id || !__label || !__image_data)
131 return;
132
129 g_free (_id);133 g_free (_id);
130 g_free (_label);134 g_free (_label);
131 g_free (_image_data);135 g_free (_image_data);
132136
=== modified file 'src/IndicatorObjectFactoryRemote.cpp'
--- src/IndicatorObjectFactoryRemote.cpp 2011-04-06 12:34:53 +0000
+++ src/IndicatorObjectFactoryRemote.cpp 2011-04-08 07:55:41 +0000
@@ -329,21 +329,24 @@
329329
330void330void
331IndicatorObjectFactoryRemote::Sync (GVariant *args)331IndicatorObjectFactoryRemote::Sync (GVariant *args)
332{332{
333 GVariantIter *iter;333 GVariantIter *iter = NULL;
334 gchar *indicator_id;334 gchar *indicator_id = NULL;
335 gchar *entry_id;335 gchar *entry_id = NULL;
336 gchar *label;336 gchar *label = NULL;
337 gboolean label_sensitive;337 gboolean label_sensitive = false;
338 gboolean label_visible;338 gboolean label_visible = false;
339 guint32 image_type;339 guint32 image_type = 0;
340 gchar *image_data;340 gchar *image_data = NULL;
341 gboolean image_sensitive;341 gboolean image_sensitive = false;
342 gboolean image_visible;342 gboolean image_visible = false;
343
344 IndicatorObjectProxyRemote *current_proxy = NULL;343 IndicatorObjectProxyRemote *current_proxy = NULL;
345 gchar *current_proxy_id = NULL;344 gchar *current_proxy_id = NULL;
346345
346 // sanity check
347 if (!args)
348 return;
349
347 g_variant_get (args, "(a(sssbbusbb))", &iter);350 g_variant_get (args, "(a(sssbbusbb))", &iter);
348 while (g_variant_iter_loop (iter, "(sssbbusbb)",351 while (g_variant_iter_loop (iter, "(sssbbusbb)",
349 &indicator_id,352 &indicator_id,
350353
=== modified file 'src/IndicatorObjectProxyRemote.cpp'
--- src/IndicatorObjectProxyRemote.cpp 2011-03-17 09:41:28 +0000
+++ src/IndicatorObjectProxyRemote.cpp 2011-04-08 07:55:41 +0000
@@ -74,6 +74,10 @@
74 bool image_sensitive,74 bool image_sensitive,
75 bool image_visible)75 bool image_visible)
76{76{
77 // sanity check
78 if (!entry_id || !label || !image_data)
79 return;
80
77 IndicatorObjectEntryProxyRemote *remote = NULL;81 IndicatorObjectEntryProxyRemote *remote = NULL;
78 std::vector<IndicatorObjectEntryProxy*>::iterator it;82 std::vector<IndicatorObjectEntryProxy*>::iterator it;
79 83