1
Index: app/widgets/gimphelp.c
2
===================================================================
3
--- app/widgets/gimphelp.c (revision 27111)
4
+++ app/widgets/gimphelp.c (revision 27113)
6
*domain_names = g_new0 (gchar *, n_domains + 1);
7
*domain_uris = g_new0 (gchar *, n_domains + 1);
9
- *domain_names[0] = g_strdup ("http://www.gimp.org/help");
10
- *domain_uris[0] = gimp_help_get_default_domain_uri (gimp);
11
+ (*domain_names)[0] = g_strdup ("http://www.gimp.org/help");
12
+ (*domain_uris)[0] = gimp_help_get_default_domain_uri (gimp);
14
for (i = 0; i < n_domains; i++)
16
- *domain_names[i + 1] = plug_in_domains[i];
17
- *domain_uris[i + 1] = plug_in_uris[i];
18
+ (*domain_names)[i + 1] = plug_in_domains[i];
19
+ (*domain_uris)[i + 1] = plug_in_uris[i];
22
g_free (plug_in_domains);
23
Index: app/plug-in/gimppluginprocframe.c
24
===================================================================
25
--- app/plug-in/gimppluginprocframe.c (revision 27111)
26
+++ app/plug-in/gimppluginprocframe.c (revision 27113)
29
proc_frame->main_context = g_object_ref (context);
30
proc_frame->context_stack = NULL;
31
- proc_frame->procedure = GIMP_PROCEDURE (procedure);
32
+ proc_frame->procedure = procedure ? g_object_ref (procedure) : NULL;
33
proc_frame->main_loop = NULL;
34
proc_frame->return_vals = NULL;
35
proc_frame->progress = progress ? g_object_ref (progress) : NULL;
37
proc_frame->main_context = NULL;
40
+ if (proc_frame->procedure)
42
+ g_object_unref (proc_frame->procedure);
43
+ proc_frame->procedure = NULL;
46
if (proc_frame->return_vals)
48
g_value_array_free (proc_frame->return_vals);