mirror of https://github.com/GNOME/gimp.git
fixed a memleak: free the message's name before freeing the message
2000-03-03 Michael Natterer <mitch@gimp.org> * libgimp/gimpprotocol.c (_gp_proc_return_destroy): fixed a memleak: free the message's name before freeing the message itself.
This commit is contained in:
parent
f4917054a9
commit
024b0d0597
|
@ -1,3 +1,8 @@
|
|||
2000-03-03 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimp/gimpprotocol.c (_gp_proc_return_destroy): fixed a
|
||||
memleak: free the message's name before freeing the message itself.
|
||||
|
||||
2000-03-03 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/iscissors.c: this time cursor_update feedback is _really_
|
||||
|
|
|
@ -521,8 +521,8 @@ _gp_tile_data_destroy (WireMessage *msg)
|
|||
GPTileData *tile_data;
|
||||
|
||||
tile_data = msg->data;
|
||||
if (tile_data->data)
|
||||
g_free (tile_data->data);
|
||||
|
||||
g_free (tile_data->data);
|
||||
g_free (tile_data);
|
||||
}
|
||||
|
||||
|
@ -561,6 +561,7 @@ _gp_proc_run_destroy (WireMessage *msg)
|
|||
|
||||
proc_run = msg->data;
|
||||
_gp_params_destroy (proc_run->params, proc_run->nparams);
|
||||
|
||||
g_free (proc_run->name);
|
||||
g_free (proc_run);
|
||||
}
|
||||
|
@ -597,6 +598,8 @@ _gp_proc_return_destroy (WireMessage *msg)
|
|||
|
||||
proc_return = msg->data;
|
||||
_gp_params_destroy (proc_return->params, proc_return->nparams);
|
||||
|
||||
g_free (proc_return->name);
|
||||
g_free (proc_return);
|
||||
}
|
||||
|
||||
|
|
|
@ -521,8 +521,8 @@ _gp_tile_data_destroy (WireMessage *msg)
|
|||
GPTileData *tile_data;
|
||||
|
||||
tile_data = msg->data;
|
||||
if (tile_data->data)
|
||||
g_free (tile_data->data);
|
||||
|
||||
g_free (tile_data->data);
|
||||
g_free (tile_data);
|
||||
}
|
||||
|
||||
|
@ -561,6 +561,7 @@ _gp_proc_run_destroy (WireMessage *msg)
|
|||
|
||||
proc_run = msg->data;
|
||||
_gp_params_destroy (proc_run->params, proc_run->nparams);
|
||||
|
||||
g_free (proc_run->name);
|
||||
g_free (proc_run);
|
||||
}
|
||||
|
@ -597,6 +598,8 @@ _gp_proc_return_destroy (WireMessage *msg)
|
|||
|
||||
proc_return = msg->data;
|
||||
_gp_params_destroy (proc_return->params, proc_return->nparams);
|
||||
|
||||
g_free (proc_return->name);
|
||||
g_free (proc_return);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue