diff options
-rw-r--r-- | libcaja-private/caja-bookmark.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-bookmark.c b/libcaja-private/caja-bookmark.c index e10889db..aeb3e05d 100644 --- a/libcaja-private/caja-bookmark.c +++ b/libcaja-private/caja-bookmark.c @@ -644,6 +644,10 @@ caja_bookmark_menu_item_new (CajaBookmark *bookmark) menu_item = bookmark_image_menu_item_new_from_surface (surface, bookmark->details->name); + if (surface != NULL) + { + cairo_surface_destroy (surface); + } } return menu_item; } |