summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-undostack-manager.c
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2015-06-27 08:11:10 +0100
committerMartin Wimpress <[email protected]>2015-06-27 08:11:10 +0100
commite704022661db84095633b71b4ccc712186e5999a (patch)
treec1c2f0150af28ec05da4f8d9ccaa567f8f02c765 /libcaja-private/caja-undostack-manager.c
parent2cdfa50d1108f0e0300ecd73111bb9c04132cb53 (diff)
parent0ad3772ad8850197a62d8a388857c6cd532edd77 (diff)
downloadcaja-e704022661db84095633b71b4ccc712186e5999a.tar.bz2
caja-e704022661db84095633b71b4ccc712186e5999a.tar.xz
Merge pull request #436 from obache/neatsrc
Use g_malloc instead of malloc to be safe
Diffstat (limited to 'libcaja-private/caja-undostack-manager.c')
-rw-r--r--libcaja-private/caja-undostack-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcaja-private/caja-undostack-manager.c b/libcaja-private/caja-undostack-manager.c
index 1d988cda..79778460 100644
--- a/libcaja-private/caja-undostack-manager.c
+++ b/libcaja-private/caja-undostack-manager.c
@@ -903,7 +903,7 @@ caja_undostack_manager_data_add_trashed_file (CajaUndoStackActionData
return;
guint64 *modificationTime;
- modificationTime = (guint64 *) malloc (sizeof (guint64));
+ modificationTime = (guint64 *) g_malloc (sizeof (guint64));
*modificationTime = mtime;
char *originalURI = g_file_get_uri (file);
@@ -924,7 +924,7 @@ void caja_undostack_manager_data_add_file_permissions
return;
guint32 *currentPermission;
- currentPermission = (guint32 *) malloc (sizeof (guint32));
+ currentPermission = (guint32 *) g_malloc (sizeof (guint32));
*currentPermission = permission;
char *originalURI = g_file_get_uri (file);